From 4fdd4f6c70054a965c302bb237fe213edf637d30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Obermu=CC=88ller?= Date: Wed, 22 Nov 2023 11:20:14 +0100 Subject: [PATCH] fix tests --- posthog/api/test/test_search.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/posthog/api/test/test_search.py b/posthog/api/test/test_search.py index 543d2d5adc048..36f31c8ec9ef4 100644 --- a/posthog/api/test/test_search.py +++ b/posthog/api/test/test_search.py @@ -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}, }, ) @@ -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):