Skip to content

Commit

Permalink
test: Don't snapshot ClickHouse queries from `sync_insight_caching_st…
Browse files Browse the repository at this point in the history
…ate` task
  • Loading branch information
tkaemming committed Oct 25, 2024
1 parent afc3628 commit 071c2da
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion posthog/test/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,13 @@ def wrapped(self, *args, **kwargs):
fn(self, *args, **kwargs)

for query in queries:
if "FROM system.columns" not in query:
if not any(
ignore_string not in query
for ignore_string in [
"FROM system.columns",
"celery:posthog.tasks.tasks.sync_insight_caching_state",
]
):
self.assertQueryMatchesSnapshot(query)

return wrapped
Expand Down

0 comments on commit 071c2da

Please sign in to comment.