Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr committed Nov 22, 2023
1 parent 3e23789 commit 4fdd4f6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions posthog/api/test/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,7 @@ def test_response_format_and_ids(self):
"rank": response.json()["results"][1]["rank"],
"type": "insight",
"result_id": self.insight_1.short_id,
"extra_fields": {
"derived_name": None,
"name": "second insight",
"description": None,
},
"extra_fields": {"name": "second insight", "description": None, "filters": {}, "query": None},
},
)

Expand All @@ -88,7 +84,7 @@ def test_extra_fields(self):
self.assertEqual(response.status_code, 200)
self.assertEqual(
response.json()["results"][0]["extra_fields"],
{"derived_name": "derived name", "description": None, "name": None},
{"name": None, "description": None, "filters": {}, "query": None},
)

def test_search_with_fully_invalid_query(self):
Expand Down

0 comments on commit 4fdd4f6

Please sign in to comment.