mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user