1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Rewrote some references to "master".

Following d9a266d657.
This commit is contained in:
Adam Johnson
2021-11-22 10:47:38 +00:00
committed by Carlton Gibson
parent d4fd31684a
commit a8c15481f4
11 changed files with 36 additions and 36 deletions

View File

@@ -33,20 +33,20 @@ HERE = os.path.dirname(__file__)
class AppsTests(SimpleTestCase):
def test_singleton_master(self):
def test_singleton_main(self):
"""
Only one master registry can exist.
Only one main registry can exist.
"""
with self.assertRaises(RuntimeError):
Apps(installed_apps=None)
def test_ready(self):
"""
Tests the ready property of the master registry.
Tests the ready property of the main registry.
"""
# The master app registry is always ready when the tests run.
# The main app registry is always ready when the tests run.
self.assertIs(apps.ready, True)
# Non-master app registries are populated in __init__.
# Non-main app registries are populated in __init__.
self.assertIs(Apps().ready, True)
# The condition is set when apps are ready
self.assertIs(apps.ready_event.is_set(), True)