mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Used Apps.clear_cache() in tests that alter the app registry.
This commit is contained in:
@@ -136,7 +136,7 @@ class MakeMigrationsTests(MigrationTestBase):
|
||||
def tearDown(self):
|
||||
apps.app_configs['migrations'].models = self._old_models
|
||||
apps.all_models['migrations'] = self._old_models
|
||||
apps.get_models.cache_clear()
|
||||
apps.clear_cache()
|
||||
|
||||
os.chdir(self.test_dir)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user