Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(tests): serialize funnel compare queries in tests (#84624)

Paul D'Ambradabea64c5b8f
diff --git a/posthog/hogql_queries/insights/funnels/test/test_funnel_time_to_convert.py b/posthog/hogql_queries/insights/funnels/test/test_funnel_time_to_convert.py
index 17e813dd9d82..a447abd5c239 100644
--- a/posthog/hogql_queries/insights/funnels/test/test_funnel_time_to_convert.py
+++ b/posthog/hogql_queries/insights/funnels/test/test_funnel_time_to_convert.py
@@ -9,6 +9,8 @@ from posthog.test.base import (
)
from unittest.case import skip
+from django.test import override_settings
+
from posthog.schema import (
CompareFilter,
DateRange,
@@ -643,6 +645,7 @@ class TestFunnelTimeToConvert(ClickhouseTestMixin, APIBaseTest):
)
+@override_settings(IN_UNIT_TESTING=True)
class TestFunnelTimeToConvertCompare(ClickhouseTestMixin, APIBaseTest):
"""Compare-to-previous on funnel TIME_TO_CONVERT viz: two histograms on shared bin boundaries."""