From 071c2da816a52d019d5821c89d08765dead48b92 Mon Sep 17 00:00:00 2001 From: Ted Kaemming <65315+tkaemming@users.noreply.github.com> Date: Fri, 25 Oct 2024 15:47:43 -0700 Subject: [PATCH] test: Don't snapshot ClickHouse queries from `sync_insight_caching_state` task --- posthog/test/base.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/posthog/test/base.py b/posthog/test/base.py index 1958c630aa33d..e9eca8a4ae992 100644 --- a/posthog/test/base.py +++ b/posthog/test/base.py @@ -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