summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2020-04-20 12:44:28 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-04-21 08:37:37 +0200
commit2ba55b29050e68bf312cab0a4f512fc6fd01e619 (patch)
tree5ec9e40288714b47059efa6312c65fa516ed4f97
parent330c0ed7c4cf915c1a9982d94bce01fe3c9e9f1e (diff)
Removed redundant import in tests/migrations/test_operations.py.
-rw-r--r--tests/migrations/test_operations.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/migrations/test_operations.py b/tests/migrations/test_operations.py
index 3908a6466d..162a14d529 100644
--- a/tests/migrations/test_operations.py
+++ b/tests/migrations/test_operations.py
@@ -3,7 +3,6 @@ from django.db import (
IntegrityError, connection, migrations, models, transaction,
)
from django.db.migrations.migration import Migration
-from django.db.migrations.operations import CreateModel
from django.db.migrations.operations.fields import FieldOperation
from django.db.migrations.state import ModelState, ProjectState
from django.db.transaction import atomic
@@ -1754,7 +1753,7 @@ class OperationTests(OperationTestBase):
def test_add_constraint_percent_escaping(self):
app_label = 'add_constraint_string_quoting'
operations = [
- CreateModel(
+ migrations.CreateModel(
'Author',
fields=[
('id', models.AutoField(primary_key=True)),
@@ -1820,7 +1819,7 @@ class OperationTests(OperationTestBase):
def test_add_constraint_combinable(self):
app_label = 'test_addconstraint_combinable'
operations = [
- CreateModel(
+ migrations.CreateModel(
'Book',
fields=[
('id', models.AutoField(primary_key=True)),
@@ -2917,7 +2916,11 @@ class SwappableOperationTests(OperationTestBase):
class TestCreateModel(SimpleTestCase):
def test_references_model_mixin(self):
- CreateModel('name', [], bases=(Mixin, models.Model)).references_model('other_model', 'migrations')
+ migrations.CreateModel(
+ 'name',
+ fields=[],
+ bases=(Mixin, models.Model),
+ ).references_model('other_model', 'migrations')
class FieldOperationTests(SimpleTestCase):