mirror of
https://github.com/django/django.git
synced 2025-11-20 03:30:00 +00:00
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
This commit is contained in:
parent
55b0cc2131
commit
69a93a88ed
378 changed files with 2781 additions and 1861 deletions
|
|
@ -388,7 +388,8 @@ class AppsTests(SimpleTestCase):
|
|||
class LazyC(models.Model):
|
||||
pass
|
||||
|
||||
# Everything should be loaded - make sure the callback was executed properly.
|
||||
# Everything should be loaded - make sure the callback was executed
|
||||
# properly.
|
||||
self.assertEqual(model_classes, [LazyA, LazyB, LazyB, LazyC, LazyA])
|
||||
|
||||
|
||||
|
|
@ -421,7 +422,9 @@ class AppConfigTests(SimpleTestCase):
|
|||
self.assertEqual(ac.path, "foo")
|
||||
|
||||
def test_dunder_path(self):
|
||||
"""If single element in __path__, use it (in preference to __file__)."""
|
||||
"""
|
||||
If single element in __path__, use it (in preference to __file__).
|
||||
"""
|
||||
ac = AppConfig("label", Stub(__path__=["a"], __file__="b/__init__.py"))
|
||||
|
||||
self.assertEqual(ac.path, "a")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue