summaryrefslogtreecommitdiff
path: root/tests/get_or_create
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/get_or_create
parent388d986b8a6bb1363dab9f53ea435dff4dfe92cb (diff)
downloaddjango-0ed7d155635da9f79d4dd67e4889087d3673c6da.tar.gz
Sorted imports with isort; refs #23860.
Diffstat (limited to 'tests/get_or_create')
-rw-r--r--tests/get_or_create/tests.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/get_or_create/tests.py b/tests/get_or_create/tests.py
index f15d84323d..a58e77ec0e 100644
--- a/tests/get_or_create/tests.py
+++ b/tests/get_or_create/tests.py
@@ -1,14 +1,16 @@
from __future__ import unicode_literals
-from datetime import date
import traceback
+from datetime import date
-from django.db import IntegrityError, DatabaseError
-from django.utils.encoding import DjangoUnicodeDecodeError
+from django.db import DatabaseError, IntegrityError
from django.test import TestCase, TransactionTestCase, ignore_warnings
+from django.utils.encoding import DjangoUnicodeDecodeError
-from .models import (DefaultPerson, Person, ManualPrimaryKeyTest, Profile,
- Tag, Thing, Publisher, Author, Book)
+from .models import (
+ Author, Book, DefaultPerson, ManualPrimaryKeyTest, Person, Profile,
+ Publisher, Tag, Thing,
+)
class GetOrCreateTests(TestCase):