mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +00:00
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:
parent
0859508a64
commit
9189d60996
3 changed files with 18 additions and 17 deletions
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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((
|
||||
|
|
|
|||
1
tox.ini
1
tox.ini
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue