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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user