1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +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:
django-bot
2025-07-22 20:41:41 -07:00
committed by nessita
parent 55b0cc2131
commit 69a93a88ed
378 changed files with 2781 additions and 1861 deletions

View File

@@ -78,7 +78,8 @@ class ExecutorTests(MigrationTestBase):
)
def test_run_with_squashed(self):
"""
Tests running a squashed migration from zero (should ignore what it replaces)
Tests running a squashed migration from zero (should ignore what it
replaces)
"""
executor = MigrationExecutor(connection)
# Check our leaf node is the squashed one
@@ -351,7 +352,8 @@ class ExecutorTests(MigrationTestBase):
self.assertTableExists("migrations_tribble")
# Make sure that was faked
self.assertIs(state["faked"], True)
# Finally, migrate forwards; this should fake-apply our initial migration
# Finally, migrate forwards; this should fake-apply our initial
# migration
executor.loader.build_graph()
self.assertEqual(
executor.migration_plan([("migrations", "0001_initial")]),
@@ -383,8 +385,8 @@ class ExecutorTests(MigrationTestBase):
)
def test_custom_user(self):
"""
Regression test for #22325 - references to a custom user model defined in the
same app are not resolved correctly.
Regression test for #22325 - references to a custom user model defined
in the same app are not resolved correctly.
"""
with isolate_lru_cache(global_apps.get_swappable_settings_name):
executor = MigrationExecutor(connection)