diff --git a/posthog/api/test/test_query.py b/posthog/api/test/test_query.py index 6e6fd5490b61b..434ad2ca20058 100644 --- a/posthog/api/test/test_query.py +++ b/posthog/api/test/test_query.py @@ -351,7 +351,9 @@ def test_safe_clickhouse_error_passed_through(self): ), ) - @patch("sqlparse.format", return_value="SELECT 1&&&") # Erroneously constructed SQL + @patch( + "posthog.clickhouse.client.execute._annotate_tagged_query", return_value=("SELECT 1&&&", {}) + ) # Erroneously constructed SQL def test_unsafe_clickhouse_error_is_swallowed(self, sqlparse_format_mock): query = {"kind": "EventsQuery", "select": ["timestamp"]}