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

@ -21,7 +21,7 @@ class EggLoadingTest(TestCase):
def tearDown(self):
apps.all_models['app_loading'] = self._old_models
apps.get_models.cache_clear()
apps.clear_cache()
sys.path = self.old_path