From 30f4c1b2ee3e5dbd6e4a772a7a6536cb0fc25212 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Fri, 22 Sep 2023 16:40:36 +0100 Subject: [PATCH] clear cache between tests --- posthog/test/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/posthog/test/base.py b/posthog/test/base.py index 8b66387037a7c..5457bbe4056bc 100644 --- a/posthog/test/base.py +++ b/posthog/test/base.py @@ -12,6 +12,7 @@ import pytest import sqlparse from django.apps import apps +from django.core.cache import cache from django.db import connection, connections from django.db.migrations.executor import MigrationExecutor from django.test import TestCase, TransactionTestCase, override_settings @@ -232,6 +233,7 @@ class APIBaseTest(TestMixin, ErrorResponsesMixin, DRFTestCase): def setUp(self): super().setUp() + cache.clear() TEST_clear_cloud_cache(self.initial_cloud_mode) TEST_clear_instance_license_cache()