summaryrefslogtreecommitdiff
path: root/tests/proxy_models
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-12-24 12:25:17 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-12-24 12:25:17 +0100
commit1716b7ce5a02b2a77188dfea2d41e25dfa58821c (patch)
treef3422c0d6725f45756a3b9deb32406d319b8a72e /tests/proxy_models
parente9e522a8e7455900a775678e5d6bc518a289b8d1 (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/proxy_models')
-rw-r--r--tests/proxy_models/tests.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/proxy_models/tests.py b/tests/proxy_models/tests.py
index 4a3d6e5e5a..fe294aeb1e 100644
--- a/tests/proxy_models/tests.py
+++ b/tests/proxy_models/tests.py
@@ -1,6 +1,6 @@
from __future__ import unicode_literals
-from django.apps import app_cache
+from django.apps import apps
from django.contrib import admin
from django.contrib.contenttypes.models import ContentType
from django.core import management
@@ -155,7 +155,7 @@ class ProxyModelTests(TestCase):
def test_swappable(self):
# The models need to be removed after the test in order to prevent bad
# interactions with the flush operation in other tests.
- _old_models = app_cache.app_configs['proxy_models'].models.copy()
+ _old_models = apps.app_configs['proxy_models'].models.copy()
try:
class SwappableModel(models.Model):
@@ -173,9 +173,9 @@ class ProxyModelTests(TestCase):
class Meta:
proxy = True
finally:
- app_cache.app_configs['proxy_models'].models = _old_models
- app_cache.all_models['proxy_models'] = _old_models
- app_cache.get_models.cache_clear()
+ apps.app_configs['proxy_models'].models = _old_models
+ apps.all_models['proxy_models'] = _old_models
+ apps.get_models.cache_clear()
def test_myperson_manager(self):
Person.objects.create(name="fred")