From bbdf01e00aed1e86f6aaeba81065be21af35d415 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 28 Dec 2013 20:13:08 +0100 Subject: 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. --- tests/apps/tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') 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): -- cgit v1.3