diff --git a/posthog/test/base.py b/posthog/test/base.py index 934a4eb99b48a..a8a06dcf3e480 100644 --- a/posthog/test/base.py +++ b/posthog/test/base.py @@ -792,8 +792,9 @@ def _execute_migration_with_snapshots(self, executor): def setUpBeforeMigration(self, apps): pass - def tearDown(self): - super().tearDown() # type: ignore + @classmethod + def tearDownClass(cls): + super().tearDownClass() # type: ignore executor = MigrationExecutor(connection) # Reset Django's migration state targets = executor.loader.graph.leaf_nodes() executor.migrate(targets) # Migrate to the latest migration