mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Used Apps.clear_cache() in tests that alter the app registry.
This commit is contained in:
parent
8cfcd801c4
commit
38ce41103f
6 changed files with 8 additions and 8 deletions
|
@ -37,7 +37,7 @@ class TablespacesTests(TestCase):
|
|||
|
||||
apps.app_configs['tablespaces'].models = self._old_models
|
||||
apps.all_models['tablespaces'] = self._old_models
|
||||
apps.get_models.cache_clear()
|
||||
apps.clear_cache()
|
||||
|
||||
def assertNumContains(self, haystack, needle, count):
|
||||
real_count = haystack.count(needle)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue