diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-24 12:25:17 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-24 12:25:17 +0100 |
| commit | 1716b7ce5a02b2a77188dfea2d41e25dfa58821c (patch) | |
| tree | f3422c0d6725f45756a3b9deb32406d319b8a72e /tests/tablespaces | |
| parent | e9e522a8e7455900a775678e5d6bc518a289b8d1 (diff) | |
Renamed AppCache to Apps.
Also renamed app_cache to apps and "app cache" to "app registry".
Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
Diffstat (limited to 'tests/tablespaces')
| -rw-r--r-- | tests/tablespaces/tests.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tablespaces/tests.py b/tests/tablespaces/tests.py index fdee877a9f..5e22608551 100644 --- a/tests/tablespaces/tests.py +++ b/tests/tablespaces/tests.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -from django.apps import app_cache +from django.apps import apps from django.conf import settings from django.db import connection from django.core.management.color import no_style @@ -26,7 +26,7 @@ class TablespacesTests(TestCase): def setUp(self): # The unmanaged models need to be removed after the test in order to # prevent bad interactions with the flush operation in other tests. - self._old_models = app_cache.app_configs['tablespaces'].models.copy() + self._old_models = apps.app_configs['tablespaces'].models.copy() for model in Article, Authors, Reviewers, Scientist: model._meta.managed = True @@ -35,9 +35,9 @@ class TablespacesTests(TestCase): for model in Article, Authors, Reviewers, Scientist: model._meta.managed = False - app_cache.app_configs['tablespaces'].models = self._old_models - app_cache.all_models['tablespaces'] = self._old_models - app_cache.get_models.cache_clear() + apps.app_configs['tablespaces'].models = self._old_models + apps.all_models['tablespaces'] = self._old_models + apps.get_models.cache_clear() def assertNumContains(self, haystack, needle, count): real_count = haystack.count(needle) |
