MCPcopy
hub / github.com/django/django / test_ready

Method test_ready

tests/apps/tests.py:51–61  ·  view source on GitHub ↗

Tests the ready property of the main registry.

(self)

Source from the content-addressed store, hash-verified

49 Apps(installed_apps=None)
50
51 def test_ready(self):
52 """
53 Tests the ready property of the main registry.
54 """
55 # The main app registry is always ready when the tests run.
56 self.assertIs(apps.ready, True)
57 # Non-main app registries are populated in __init__.
58 self.assertIs(Apps().ready, True)
59 # The condition is set when apps are ready
60 self.assertIs(apps.ready_event.is_set(), True)
61 self.assertIs(Apps().ready_event.is_set(), True)
62
63 def test_bad_app_config(self):
64 """

Callers

nothing calls this directly

Calls 2

AppsClass · 0.90
is_setMethod · 0.80

Tested by

no test coverage detected