summaryrefslogtreecommitdiff
path: root/tests/apps
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-12-28 20:13:08 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-12-28 20:37:42 +0100
commitbbdf01e00aed1e86f6aaeba81065be21af35d415 (patch)
treeb4bc4b0ebf1bebaf4636c764f43ee48cd2686d7a /tests/apps
parent81a5e35c8d357051e558e6f0d1b6ff7a7523a537 (diff)
Populated non-master app registries.
This removes the gap between the master app registry and ad-hoc app registries created by the migration framework, specifically in terms of behavior of the get_model[s] methods. This commit contains a stealth feature that I'd rather not describe.
Diffstat (limited to 'tests/apps')
-rw-r--r--tests/apps/tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/apps/tests.py b/tests/apps/tests.py
index f7de95ebe3..4e988493fc 100644
--- a/tests/apps/tests.py
+++ b/tests/apps/tests.py
@@ -50,8 +50,10 @@ class AppsTests(TestCase):
Tests the ready property of a registry other than the master.
"""
apps = Apps()
- # Currently, non-master app registries are artificially considered
- # ready regardless of whether populate_models() has run.
+ self.assertFalse(apps.ready)
+ apps.populate_apps([])
+ self.assertFalse(apps.ready)
+ apps.populate_models()
self.assertTrue(apps.ready)
def test_bad_app_config(self):