diff options
| author | Tim Graham <timograham@gmail.com> | 2016-04-07 22:04:45 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-04-08 10:12:33 -0400 |
| commit | 92053acbb9160862c3e743a99ed8ccff8d4f8fd6 (patch) | |
| tree | 50e7fd28a650f0e2352cf94f92e5a66d28a81988 /tests/model_fields | |
| parent | df8d8d4292684d6ffa7474f1e201aed486f02b53 (diff) | |
Fixed E128 flake8 warnings in tests/.
Diffstat (limited to 'tests/model_fields')
| -rw-r--r-- | tests/model_fields/test_field_flags.py | 3 | ||||
| -rw-r--r-- | tests/model_fields/test_imagefield.py | 6 |
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) |
