Skip to content

Commit

Permalink
fix last test
Browse files Browse the repository at this point in the history
  • Loading branch information
aspicer committed Sep 5, 2024
1 parent 1c1560c commit ccae49f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions posthog/hogql_queries/insights/funnels/test/test_funnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit ccae49f

Please sign in to comment.