: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
chore(ci): mock dns in the heatmap encoding test (#127904)
posthog[bot]a5d7afc65593
diff --git a/products/exports/backend/tasks/test/test_image_exporter.py b/products/exports/backend/tasks/test/test_image_exporter.pyindex a09c8f991d87..61acd3c87909 100644--- a/products/exports/backend/tasks/test/test_image_exporter.py+++ b/products/exports/backend/tasks/test/test_image_exporter.py@@ -1,3 +1,4 @@+import ipaddressfrom datetime import datetimefrom typing import Anyfrom urllib.parse import parse_qs, urlparse@@ -681,7 +682,12 @@ class TestHeatmapExportURLEncoding(APIBaseTest):},)- with self.settings(OBJECT_STORAGE_ENABLED=False):+ with (+ self.settings(OBJECT_STORAGE_ENABLED=False),+ patch(+ "posthog.security.url_validation.resolve_host_ips", return_value={ipaddress.ip_address("93.184.216.34")}+ ),+ ):image_exporter.export_image(exported_asset)url_to_render = mock_screenshot_asset.call_args[0][1]