summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/migrations/test_operations.py2
-rw-r--r--tests/migrations/test_state.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/migrations/test_operations.py b/tests/migrations/test_operations.py
index 1a856a6f2d..eda356fd5d 100644
--- a/tests/migrations/test_operations.py
+++ b/tests/migrations/test_operations.py
@@ -218,7 +218,7 @@ class OperationTests(MigrationTestBase):
self.assertEqual(field.default, NOT_PROVIDED)
# Test the database alteration
project_state.render().get_model("test_adflpd", "pony").objects.create(
- weight = 4,
+ weight=4,
)
self.assertColumnNotExists("test_adflpd_pony", "height")
with connection.schema_editor() as editor:
diff --git a/tests/migrations/test_state.py b/tests/migrations/test_state.py
index 276f404c11..5c71376179 100644
--- a/tests/migrations/test_state.py
+++ b/tests/migrations/test_state.py
@@ -35,6 +35,7 @@ class StateTests(TestCase):
class SubAuthor(Author):
width = models.FloatField(null=True)
+
class Meta:
app_label = "migrations"
apps = new_apps