summaryrefslogtreecommitdiff
path: root/tests/serializers/tests.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-02-09 13:19:34 -0500
committerTim Graham <timograham@gmail.com>2015-02-09 14:24:06 -0500
commita8b70d251d238b4e6cfc7bb4296da15494f8dff3 (patch)
tree94ef5bc53e59131906aecfcf792eeac86242aa62 /tests/serializers/tests.py
parenteb406aa686ff1809903366ef6896037af2f1f69b (diff)
[1.8.x] Sorted imports with isort; refs #23860.
Backport of 0ed7d155635da9f79d4dd67e4889087d3673c6da from master
Diffstat (limited to 'tests/serializers/tests.py')
-rw-r--r--tests/serializers/tests.py26
1 files changed, 15 insertions, 11 deletions
diff --git a/tests/serializers/tests.py b/tests/serializers/tests.py
index f6b66a054a..5448b01b29 100644
--- a/tests/serializers/tests.py
+++ b/tests/serializers/tests.py
@@ -3,26 +3,30 @@ from __future__ import unicode_literals
import importlib
import json
-from datetime import datetime
import re
import unittest
+from datetime import datetime
from xml.dom import minidom
-try:
- import yaml
- HAS_YAML = True
-except ImportError:
- HAS_YAML = False
-
from django.core import management, serializers
-from django.db import transaction, connection
-from django.test import TestCase, TransactionTestCase, override_settings, skipUnlessDBFeature
+from django.db import connection, transaction
+from django.test import (
+ TestCase, TransactionTestCase, override_settings, skipUnlessDBFeature,
+)
from django.test.utils import Approximate
from django.utils import six
from django.utils.six import StringIO
-from .models import (Category, Author, Article, AuthorProfile, Actor, Movie,
- Score, Player, Team)
+from .models import (
+ Actor, Article, Author, AuthorProfile, Category, Movie, Player, Score,
+ Team,
+)
+
+try:
+ import yaml
+ HAS_YAML = True
+except ImportError:
+ HAS_YAML = False
@override_settings(