MCPcopy
hub / github.com/django/django / test_one_config_app

Method test_one_config_app

tests/apps/tests.py:119–123  ·  view source on GitHub ↗

Load an app that provides an AppConfig class.

(self)

Source from the content-addressed store, hash-verified

117 self.assertIsInstance(config, AppConfig)
118
119 def test_one_config_app(self):
120 """Load an app that provides an AppConfig class."""
121 with self.settings(INSTALLED_APPS=["apps.one_config_app"]):
122 config = apps.get_app_config("one_config_app")
123 self.assertIsInstance(config, OneConfig)
124
125 def test_two_configs_app(self):
126 """Load an app that provides two AppConfig classes."""

Callers

nothing calls this directly

Calls 2

get_app_configMethod · 0.80
settingsMethod · 0.45

Tested by

no test coverage detected