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.
This commit is contained in:
Aymeric Augustin 2013-12-28 20:13:08 +01:00
parent 81a5e35c8d
commit bbdf01e00a
4 changed files with 34 additions and 11 deletions

View file

@ -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):