From 92053acbb9160862c3e743a99ed8ccff8d4f8fd6 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 7 Apr 2016 22:04:45 -0400 Subject: Fixed E128 flake8 warnings in tests/. --- tests/model_fields/test_field_flags.py | 3 +-- tests/model_fields/test_imagefield.py | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'tests/model_fields') 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) -- cgit v1.3