MCPcopy
hub / github.com/django/django / test_singleton_main

Method test_singleton_main

tests/apps/tests.py:44–49  ·  view source on GitHub ↗

Only one main registry can exist.

(self)

Source from the content-addressed store, hash-verified

42
43class AppsTests(SimpleTestCase):
44 def test_singleton_main(self):
45 """
46 Only one main registry can exist.
47 """
48 with self.assertRaises(RuntimeError):
49 Apps(installed_apps=None)
50
51 def test_ready(self):
52 """

Callers

nothing calls this directly

Calls 1

AppsClass · 0.90

Tested by

no test coverage detected