Fix remaining non-E501 line length changes.

The E402 module level import appears to be an error of some kind in flake8?
This commit is contained in:
Lucas Wiman 2018-07-02 13:01:49 -07:00
parent 0859508a64
commit 9189d60996
3 changed files with 18 additions and 17 deletions

View file

@ -79,7 +79,7 @@ class LabelChoicesTests(ChoicesTests):
('DRAFT', 'is draft'),
('PUBLISHED', 'is published'),
('DELETED', 'DELETED'))
)
)
def test_indexing(self):
self.assertEqual(self.STATUS['PUBLISHED'], 'is published')

View file

@ -6,11 +6,12 @@ import django
from django.db import models
from django.test import TestCase
from tests.models import (InheritanceManagerTestRelated, InheritanceManagerTestGrandChild1,
InheritanceManagerTestGrandChild1_2, InheritanceManagerTestParent,
InheritanceManagerTestChild1,
InheritanceManagerTestChild2, TimeFrame, InheritanceManagerTestChild3
)
from tests.models import (
InheritanceManagerTestRelated, InheritanceManagerTestGrandChild1,
InheritanceManagerTestGrandChild1_2, InheritanceManagerTestParent,
InheritanceManagerTestChild1,
InheritanceManagerTestChild2, TimeFrame, InheritanceManagerTestChild3
)
class InheritanceManagerTests(TestCase):
@ -177,27 +178,26 @@ class InheritanceManagerTests(TestCase):
# No argument to select_subclasses
objs_1 = list(
self.get_manager().
select_subclasses().
values_list('id')
self.get_manager()
.select_subclasses()
.values_list('id')
)
# String argument to select_subclasses
objs_2 = list(
self.get_manager().
select_subclasses(
self.get_manager()
.select_subclasses(
"inheritancemanagertestchild2"
).
values_list('id')
)
.values_list('id')
)
# String argument to select_subclasses
objs_3 = list(
self.get_manager().
select_subclasses(
self.get_manager()
.select_subclasses(
InheritanceManagerTestChild2
).
values_list('id')
).values_list('id')
)
assert all((

View file

@ -40,3 +40,4 @@ commands =
ignore =
E731, ; do not assign a lambda expression, use a def
W503 ; line break before binary operator
E402 ; module level import not at top of file