mirror of
https://github.com/django/django.git
synced 2025-10-25 06:36:07 +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:
@@ -955,7 +955,8 @@ class OperationTests(OperationTestBase):
|
||||
operation.state_forwards("test_rmwsc", new_state)
|
||||
self.assertNotIn(("test_rmwsc", "shetlandpony"), new_state.models)
|
||||
self.assertIn(("test_rmwsc", "littlehorse"), new_state.models)
|
||||
# RenameModel shouldn't repoint the superclass's relations, only local ones
|
||||
# RenameModel shouldn't repoint the superclass's relations, only local
|
||||
# ones
|
||||
self.assertEqual(
|
||||
project_state.models["test_rmwsc", "rider"]
|
||||
.fields["pony"]
|
||||
@@ -2616,7 +2617,8 @@ class OperationTests(OperationTestBase):
|
||||
@skipUnlessDBFeature("supports_foreign_keys")
|
||||
def test_alter_field_pk_fk(self):
|
||||
"""
|
||||
Tests the AlterField operation on primary keys changes any FKs pointing to it.
|
||||
Tests the AlterField operation on primary keys changes any FKs pointing
|
||||
to it.
|
||||
"""
|
||||
project_state = self.set_up_test_model("test_alflpkfk", related_model=True)
|
||||
project_state = self.apply_operations(
|
||||
@@ -5782,7 +5784,8 @@ class OperationTests(OperationTestBase):
|
||||
non_atomic_migration.operations = [
|
||||
migrations.RunPython(inner_method, reverse_code=inner_method, atomic=False)
|
||||
]
|
||||
# If we're a fully-transactional database, both versions should rollback
|
||||
# If we're a fully-transactional database, both versions should
|
||||
# rollback
|
||||
if connection.features.can_rollback_ddl:
|
||||
self.assertEqual(
|
||||
project_state.apps.get_model(
|
||||
|
||||
Reference in New Issue
Block a user