summaryrefslogtreecommitdiff
path: root/tests/model_fields
diff options
context:
space:
mode:
Diffstat (limited to 'tests/model_fields')
-rw-r--r--tests/model_fields/test_field_flags.py3
-rw-r--r--tests/model_fields/test_imagefield.py6
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/model_fields/test_field_flags.py b/tests/model_fields/test_field_flags.py
index f86be8f45a..33f49a139d 100644
--- a/tests/model_fields/test_field_flags.py
+++ b/tests/model_fields/test_field_flags.py
@@ -103,8 +103,7 @@ class FieldFlagsTests(test.SimpleTestCase):
def test_each_object_should_have_auto_created(self):
self.assertTrue(
- all(f.auto_created.__class__ == bool
- for f in self.fields_and_reverse_objects)
+ all(f.auto_created.__class__ == bool for f in self.fields_and_reverse_objects)
)
def test_non_concrete_fields(self):
diff --git a/tests/model_fields/test_imagefield.py b/tests/model_fields/test_imagefield.py
index ada8e12e3b..a27476ff8d 100644
--- a/tests/model_fields/test_imagefield.py
+++ b/tests/model_fields/test_imagefield.py
@@ -17,8 +17,10 @@ except ImproperlyConfigured:
Image = None
if Image:
- from .models import (Person, PersonWithHeight, PersonWithHeightAndWidth,
- PersonDimensionsFirst, PersonTwoImages, TestImageFieldFile)
+ from .models import (
+ Person, PersonWithHeight, PersonWithHeightAndWidth,
+ PersonDimensionsFirst, PersonTwoImages, TestImageFieldFile,
+ )
from .models import temp_storage_dir
else:
# Pillow not available, create dummy classes (tests will be skipped anyway)