mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #21288 -- Fixed E126 pep8 warnings
This commit is contained in:
parent
a3690168cb
commit
b289fcf1bf
80 changed files with 646 additions and 634 deletions
|
@ -98,23 +98,23 @@ class GenericRelationsTests(TestCase):
|
|||
)
|
||||
|
||||
self.assertQuerysetEqual(TaggedItem.objects.all(), [
|
||||
('clearish', Mineral, quartz.pk),
|
||||
('fatty', Animal, platypus.pk),
|
||||
('fatty', Vegetable, bacon.pk),
|
||||
('hairy', Animal, lion.pk),
|
||||
('salty', Vegetable, bacon.pk),
|
||||
('shiny', Animal, platypus.pk),
|
||||
('yellow', Animal, lion.pk)
|
||||
('clearish', Mineral, quartz.pk),
|
||||
('fatty', Animal, platypus.pk),
|
||||
('fatty', Vegetable, bacon.pk),
|
||||
('hairy', Animal, lion.pk),
|
||||
('salty', Vegetable, bacon.pk),
|
||||
('shiny', Animal, platypus.pk),
|
||||
('yellow', Animal, lion.pk)
|
||||
],
|
||||
comp_func
|
||||
)
|
||||
lion.delete()
|
||||
self.assertQuerysetEqual(TaggedItem.objects.all(), [
|
||||
('clearish', Mineral, quartz.pk),
|
||||
('fatty', Animal, platypus.pk),
|
||||
('fatty', Vegetable, bacon.pk),
|
||||
('salty', Vegetable, bacon.pk),
|
||||
('shiny', Animal, platypus.pk)
|
||||
('clearish', Mineral, quartz.pk),
|
||||
('fatty', Animal, platypus.pk),
|
||||
('fatty', Vegetable, bacon.pk),
|
||||
('salty', Vegetable, bacon.pk),
|
||||
('shiny', Animal, platypus.pk)
|
||||
],
|
||||
comp_func
|
||||
)
|
||||
|
@ -124,11 +124,11 @@ class GenericRelationsTests(TestCase):
|
|||
quartz_pk = quartz.pk
|
||||
quartz.delete()
|
||||
self.assertQuerysetEqual(TaggedItem.objects.all(), [
|
||||
('clearish', Mineral, quartz_pk),
|
||||
('fatty', Animal, platypus.pk),
|
||||
('fatty', Vegetable, bacon.pk),
|
||||
('salty', Vegetable, bacon.pk),
|
||||
('shiny', Animal, platypus.pk)
|
||||
('clearish', Mineral, quartz_pk),
|
||||
('fatty', Animal, platypus.pk),
|
||||
('fatty', Vegetable, bacon.pk),
|
||||
('salty', Vegetable, bacon.pk),
|
||||
('shiny', Animal, platypus.pk)
|
||||
],
|
||||
comp_func
|
||||
)
|
||||
|
@ -138,10 +138,10 @@ class GenericRelationsTests(TestCase):
|
|||
tag.delete()
|
||||
self.assertQuerysetEqual(bacon.tags.all(), ["<TaggedItem: salty>"])
|
||||
self.assertQuerysetEqual(TaggedItem.objects.all(), [
|
||||
('clearish', Mineral, quartz_pk),
|
||||
('fatty', Animal, platypus.pk),
|
||||
('salty', Vegetable, bacon.pk),
|
||||
('shiny', Animal, platypus.pk)
|
||||
('clearish', Mineral, quartz_pk),
|
||||
('fatty', Animal, platypus.pk),
|
||||
('salty', Vegetable, bacon.pk),
|
||||
('shiny', Animal, platypus.pk)
|
||||
],
|
||||
comp_func
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue