MCPcopy
hub / github.com/django/django / test_two_configs_one_default_app

Method test_two_configs_one_default_app

tests/apps/tests.py:141–147  ·  view source on GitHub ↗

Load an app that provides two AppConfig classes, one being the default.

(self)

Source from the content-addressed store, hash-verified

139 pass
140
141 def test_two_configs_one_default_app(self):
142 """
143 Load an app that provides two AppConfig classes, one being the default.
144 """
145 with self.settings(INSTALLED_APPS=["apps.two_configs_one_default_app"]):
146 config = apps.get_app_config("two_configs_one_default_app")
147 self.assertIsInstance(config, TwoConfig)
148
149 @override_settings(INSTALLED_APPS=SOME_INSTALLED_APPS)
150 def test_get_app_configs(self):

Callers

nothing calls this directly

Calls 2

get_app_configMethod · 0.80
settingsMethod · 0.45

Tested by

no test coverage detected