MCPcopy
hub / github.com/django/django / test_two_configs_app

Method test_two_configs_app

tests/apps/tests.py:125–129  ·  view source on GitHub ↗

Load an app that provides two AppConfig classes.

(self)

Source from the content-addressed store, hash-verified

123 self.assertIsInstance(config, OneConfig)
124
125 def test_two_configs_app(self):
126 """Load an app that provides two AppConfig classes."""
127 with self.settings(INSTALLED_APPS=["apps.two_configs_app"]):
128 config = apps.get_app_config("two_configs_app")
129 self.assertIsInstance(config, AppConfig)
130
131 def test_two_default_configs_app(self):
132 """Load an app that provides two default AppConfig classes."""

Callers

nothing calls this directly

Calls 2

get_app_configMethod · 0.80
settingsMethod · 0.45

Tested by

no test coverage detected