mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +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:
parent
81a5e35c8d
commit
bbdf01e00a
4 changed files with 34 additions and 11 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue