Skip to content

Commit

Permalink
clear cache between tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Sep 22, 2023
1 parent ab90517 commit 30f4c1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions posthog/test/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 30f4c1b

Please sign in to comment.