From ccae49ff3da59a1d44e73f86b005f85a1d94680f Mon Sep 17 00:00:00 2001 From: Alexander Spicer Date: Thu, 5 Sep 2024 14:28:43 -0700 Subject: [PATCH] fix last test --- posthog/hogql_queries/insights/funnels/test/test_funnel.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/posthog/hogql_queries/insights/funnels/test/test_funnel.py b/posthog/hogql_queries/insights/funnels/test/test_funnel.py index e8fbcadb6582f..78d8b9166bfb7 100644 --- a/posthog/hogql_queries/insights/funnels/test/test_funnel.py +++ b/posthog/hogql_queries/insights/funnels/test/test_funnel.py @@ -4,7 +4,6 @@ from django.test import override_settings from freezegun import freeze_time -from rest_framework.exceptions import ValidationError from posthog.api.instance_settings import get_instance_setting from posthog.clickhouse.client.execute import sync_execute @@ -1901,7 +1900,7 @@ def test_funnel_exclusions_invalid_params(self): } query = cast(FunnelsQuery, filter_to_query(filters)) - self.assertRaises(ValidationError, lambda: FunnelsQueryRunner(query=query, team=self.team).calculate()) + self.assertRaises(ExposedHogQLError, lambda: FunnelsQueryRunner(query=query, team=self.team).calculate()) filters = { **filters, @@ -1915,7 +1914,7 @@ def test_funnel_exclusions_invalid_params(self): ], } query = cast(FunnelsQuery, filter_to_query(filters)) - self.assertRaises(ValidationError, lambda: FunnelsQueryRunner(query=query, team=self.team).calculate()) + self.assertRaises(ExposedHogQLError, lambda: FunnelsQueryRunner(query=query, team=self.team).calculate()) filters = { **filters, @@ -1929,7 +1928,7 @@ def test_funnel_exclusions_invalid_params(self): ], } query = cast(FunnelsQuery, filter_to_query(filters)) - self.assertRaises(ValidationError, lambda: FunnelsQueryRunner(query=query, team=self.team).calculate()) + self.assertRaises(ExposedHogQLError, lambda: FunnelsQueryRunner(query=query, team=self.team).calculate()) filters = { **filters,