From 0fef0fa080c25d6b9110b7a4ae5ade857b0b0aaf Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Wed, 30 Oct 2024 13:33:27 +0100 Subject: [PATCH] fix: yet another flappity should die (#25898) --- posthog/test/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/test/base.py b/posthog/test/base.py index 1958c630aa33d..0c40adacae97b 100644 --- a/posthog/test/base.py +++ b/posthog/test/base.py @@ -563,7 +563,7 @@ def assertQueryMatchesSnapshot(self, query, params=None, replace_all_numbers=Fal #### Cohort replacements # replace cohort id lists in queries too query = re.sub( - r"in((.*)?cohort_id, \[\d+(, ?\d+)*\])", + r"in((.*?)cohort_id, \[\d+(, ?\d+)*\])", r"in(\1cohort_id, [1, 2, 3, 4, 5 /* ... */])", query, )