summaryrefslogtreecommitdiff
path: root/tests/app_cache
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-12-14 11:11:52 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-12-17 10:17:45 +0100
commit69039becde74308d6218c72c1e410cd0049fd2bd (patch)
tree4c7c669ad326fb376ecda6bf8532d3000a293518 /tests/app_cache
parent2732edc5f2305cf454d5df43c7d85a68c639493e (diff)
Deprecated get_app().
Diffstat (limited to 'tests/app_cache')
-rw-r--r--tests/app_cache/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/app_cache/tests.py b/tests/app_cache/tests.py
index cc3637367b..484998232e 100644
--- a/tests/app_cache/tests.py
+++ b/tests/app_cache/tests.py
@@ -27,7 +27,7 @@ class AppCacheTests(TestCase):
"""
Makes a new model at runtime and ensures it goes into the right place.
"""
- old_models = app_cache.get_models(app_cache.get_app("app_cache"))
+ old_models = app_cache.get_models(app_cache.get_app_config("app_cache").models_module)
# Construct a new model in a new app cache
body = {}
new_app_cache = BaseAppCache()
@@ -42,6 +42,6 @@ class AppCacheTests(TestCase):
# Make sure it appeared in the right place!
self.assertEqual(
old_models,
- app_cache.get_models(app_cache.get_app("app_cache")),
+ app_cache.get_models(app_cache.get_app_config("app_cache").models_module),
)
self.assertEqual(new_app_cache.get_model("app_cache", "SouthPonies"), temp_model)