mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +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
|
@ -175,7 +175,7 @@ class ProxyModelTests(TestCase):
|
|||
finally:
|
||||
apps.app_configs['proxy_models'].models = _old_models
|
||||
apps.all_models['proxy_models'] = _old_models
|
||||
apps.get_models.cache_clear()
|
||||
apps.clear_cache()
|
||||
|
||||
def test_myperson_manager(self):
|
||||
Person.objects.create(name="fred")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue