1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Removed redundant import in tests/migrations/test_operations.py.

This commit is contained in:
Simon Charette 2020-04-20 12:44:28 +02:00 committed by Mariusz Felisiak
parent 330c0ed7c4
commit 2ba55b2905

View File

@ -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):