summaryrefslogtreecommitdiff
path: root/tests/serializers_regress/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_regress/tests.py
parenteb406aa686ff1809903366ef6896037af2f1f69b (diff)
[1.8.x] Sorted imports with isort; refs #23860.
Backport of 0ed7d155635da9f79d4dd67e4889087d3673c6da from master
Diffstat (limited to 'tests/serializers_regress/tests.py')
-rw-r--r--tests/serializers_regress/tests.py42
1 files changed, 22 insertions, 20 deletions
diff --git a/tests/serializers_regress/tests.py b/tests/serializers_regress/tests.py
index 0c07b3162c..5ec850cf62 100644
--- a/tests/serializers_regress/tests.py
+++ b/tests/serializers_regress/tests.py
@@ -12,36 +12,38 @@ import datetime
import decimal
from unittest import skipUnless
-try:
- import yaml
-except ImportError:
- yaml = None
-
from django.core import serializers
from django.core.serializers import SerializerDoesNotExist
from django.core.serializers.base import DeserializationError
from django.core.serializers.xml_serializer import DTDForbidden
from django.db import connection, models
from django.http import HttpResponse
-from django.test import ignore_warnings, skipUnlessDBFeature, TestCase
+from django.test import TestCase, ignore_warnings, skipUnlessDBFeature
from django.utils import six
from django.utils.deprecation import RemovedInDjango19Warning
from django.utils.functional import curry
-from .models import (BinaryData, BooleanData, CharData, DateData, DateTimeData, EmailData,
- FileData, FilePathData, DecimalData, FloatData, IntegerData, IPAddressData,
- GenericIPAddressData, NullBooleanData, PositiveIntegerData,
- PositiveSmallIntegerData, SlugData, SmallData, TextData, TimeData,
- GenericData, Anchor, UniqueAnchor, FKData, M2MData, O2OData,
- FKSelfData, M2MSelfData, FKDataToField, FKDataToO2O, M2MIntermediateData,
- Intermediate, BooleanPKData, CharPKData, EmailPKData, FilePathPKData,
- DecimalPKData, FloatPKData, IntegerPKData, IPAddressPKData,
- GenericIPAddressPKData, PositiveIntegerPKData,
- PositiveSmallIntegerPKData, SlugPKData, SmallPKData,
- AutoNowDateTimeData, ModifyingSaveData, InheritAbstractModel, BaseModel,
- ExplicitInheritBaseModel, InheritBaseModel, ProxyBaseModel,
- ProxyProxyBaseModel, BigIntegerData, LengthModel, Tag, ComplexModel,
- NaturalKeyAnchor, FKDataNaturalKey)
+from .models import (
+ Anchor, AutoNowDateTimeData, BaseModel, BigIntegerData, BinaryData,
+ BooleanData, BooleanPKData, CharData, CharPKData, ComplexModel, DateData,
+ DateTimeData, DecimalData, DecimalPKData, EmailData, EmailPKData,
+ ExplicitInheritBaseModel, FileData, FilePathData, FilePathPKData, FKData,
+ FKDataNaturalKey, FKDataToField, FKDataToO2O, FKSelfData, FloatData,
+ FloatPKData, GenericData, GenericIPAddressData, GenericIPAddressPKData,
+ InheritAbstractModel, InheritBaseModel, IntegerData, IntegerPKData,
+ Intermediate, IPAddressData, IPAddressPKData, LengthModel, M2MData,
+ M2MIntermediateData, M2MSelfData, ModifyingSaveData, NaturalKeyAnchor,
+ NullBooleanData, O2OData, PositiveIntegerData, PositiveIntegerPKData,
+ PositiveSmallIntegerData, PositiveSmallIntegerPKData, ProxyBaseModel,
+ ProxyProxyBaseModel, SlugData, SlugPKData, SmallData, SmallPKData, Tag,
+ TextData, TimeData, UniqueAnchor,
+)
+
+try:
+ import yaml
+except ImportError:
+ yaml = None
+
# A set of functions that can be used to recreate
# test data objects of various kinds.