Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Apr 26, 2024
1 parent 350cd0c commit 6c01b27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion posthog/api/test/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}

Expand Down

0 comments on commit 6c01b27

Please sign in to comment.