Used Apps.clear_cache() in tests that alter the app registry.

This commit is contained in:
Aymeric Augustin 2013-12-29 21:24:40 +01:00
parent 8cfcd801c4
commit 38ce41103f
6 changed files with 8 additions and 8 deletions

View file

@ -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")