mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
This commit is contained in:
parent
4bb70cbcc6
commit
321e94fa41
185 changed files with 1216 additions and 1528 deletions
|
@ -40,7 +40,7 @@ class AppsTests(SimpleTestCase):
|
|||
|
||||
def test_singleton_master(self):
|
||||
"""
|
||||
Ensures that only one master registry can exist.
|
||||
Only one master registry can exist.
|
||||
"""
|
||||
with self.assertRaises(RuntimeError):
|
||||
Apps(installed_apps=None)
|
||||
|
@ -179,7 +179,7 @@ class AppsTests(SimpleTestCase):
|
|||
|
||||
def test_models_py(self):
|
||||
"""
|
||||
Tests that the models in the models.py file were loaded correctly.
|
||||
The models in the models.py file were loaded correctly.
|
||||
"""
|
||||
self.assertEqual(apps.get_model("apps", "TotallyNormal"), TotallyNormal)
|
||||
with self.assertRaises(LookupError):
|
||||
|
@ -282,7 +282,7 @@ class AppsTests(SimpleTestCase):
|
|||
# and LazyModelC shouldn't be waited on until LazyModelB exists.
|
||||
self.assertSetEqual(set(apps._pending_operations) - initial_pending, {('apps', 'lazyb')})
|
||||
|
||||
# Test that multiple operations can wait on the same model
|
||||
# Multiple operations can wait on the same model
|
||||
apps.lazy_model_operation(test_func, ('apps', 'lazyb'))
|
||||
|
||||
class LazyB(models.Model):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue