: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(test): Fix both broken tests (#70869)
mendral-app[bot]e6642a854695
diff --git a/posthog/models/test/test_hog_function.py b/posthog/models/test/test_hog_function.pyindex 108485e56f21..cbfb6e8776be 100644--- a/posthog/models/test/test_hog_function.py+++ b/posthog/models/test/test_hog_function.py@@ -283,9 +283,9 @@ class TestHogFunctionsBackgroundReloading(TestCase, QueryMatchingTest):{"key": "$host", "operator": "regex", "value": "^(localhost|127\\.0\\.0\\.1)($|:)"},{"key": "$pageview", "operator": "regex", "value": "test"},]- # 1 read old secret tokens (pre_save), 1 update team, 1 load hog flows, 1 load hog functions, 1 update hog functions+ # 1 read old secret tokens (pre_save), 1 update team, 1 load hog flows, 1 load hog functions, 1 update hog functions, 1 sync_autocapture_opt_in# Note: RemoteConfig refresh queries are now deferred via async signals- with self.assertNumQueries(5):+ with self.assertNumQueries(6):self.team.save()hog_function_1.refresh_from_db()hog_function_2.refresh_from_db()diff --git a/posthog/test/setup_receivers_baseline.txt b/posthog/test/setup_receivers_baseline.txtindex f59486641e12..fcd318b3d6aa 100644--- a/posthog/test/setup_receivers_baseline.txt+++ b/posthog/test/setup_receivers_baseline.txt@@ -156,6 +156,7 @@ post_save:products.conversations.backend.signals.update_ticket_on_messagepost_save:products.data_modeling.backend.signals.sync_saved_query_name_to_nodepost_save:products.data_modeling.backend.signals.trigger_view_semantic_enrichmentpost_save:products.data_warehouse.backend.models.revenue_analytics_config.create_external_data_source_revenue_analytics_config+post_save:products.error_tracking.backend.signals.mirror_autocapture_opt_in_to_settingspost_save:products.event_definitions.backend.models.event_definition._invalidate_default_event_info_on_savepost_save:products.event_definitions.backend.models.property_definition._invalidate_has_person_email_on_savepost_save:products.exports.backend.models.subscription.subscription_saved