From 3ca999c3d8fce2b5a4478f91643a0fd41ec45322 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Wed, 30 Oct 2024 11:42:20 +0000 Subject: [PATCH] fix: yet another flappity should die --- 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, )