summaryrefslogtreecommitdiff
path: root/tests/model_regress
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-01-28 07:35:27 -0500
committerTim Graham <timograham@gmail.com>2015-02-06 08:16:28 -0500
commit0ed7d155635da9f79d4dd67e4889087d3673c6da (patch)
treecf5c59b563f01774f32e20b3af8cb24a387fdc4d /tests/model_regress
parent388d986b8a6bb1363dab9f53ea435dff4dfe92cb (diff)
downloaddjango-0ed7d155635da9f79d4dd67e4889087d3673c6da.tar.gz
Sorted imports with isort; refs #23860.
Diffstat (limited to 'tests/model_regress')
-rw-r--r--tests/model_regress/models.py1
-rw-r--r--tests/model_regress/test_pickle.py2
-rw-r--r--tests/model_regress/tests.py10
3 files changed, 7 insertions, 6 deletions
diff --git a/tests/model_regress/models.py b/tests/model_regress/models.py
index c42b0f0d35..b899baf6ea 100644
--- a/tests/model_regress/models.py
+++ b/tests/model_regress/models.py
@@ -4,7 +4,6 @@ from __future__ import unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
-
CHOICES = (
(1, 'first'),
(2, 'second'),
diff --git a/tests/model_regress/test_pickle.py b/tests/model_regress/test_pickle.py
index 64d2f6df5f..9f3725ad18 100644
--- a/tests/model_regress/test_pickle.py
+++ b/tests/model_regress/test_pickle.py
@@ -5,8 +5,8 @@ import subprocess
import sys
import warnings
-from django.db import models, DJANGO_VERSION_PICKLE_KEY
from django.core.files.temp import NamedTemporaryFile
+from django.db import DJANGO_VERSION_PICKLE_KEY, models
from django.test import TestCase
from django.utils.encoding import force_text
from django.utils.version import get_major_version, get_version
diff --git a/tests/model_regress/tests.py b/tests/model_regress/tests.py
index 49ef6b98cd..feb81f32bc 100644
--- a/tests/model_regress/tests.py
+++ b/tests/model_regress/tests.py
@@ -4,14 +4,16 @@ import datetime
from operator import attrgetter
from django.core.exceptions import ValidationError
+from django.db import router
+from django.db.models.sql import InsertQuery
from django.test import TestCase, skipUnlessDBFeature
from django.utils import six
from django.utils.timezone import get_fixed_timezone
-from django.db import router
-from django.db.models.sql import InsertQuery
-from .models import (Worker, Article, Party, Event, Department,
- BrokenUnicodeMethod, NonAutoPK, Model1, Model2, Model3)
+from .models import (
+ Article, BrokenUnicodeMethod, Department, Event, Model1, Model2, Model3,
+ NonAutoPK, Party, Worker,
+)
class ModelTests(TestCase):