mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed E128 flake8 warnings in tests/.
This commit is contained in:
parent
df8d8d4292
commit
92053acbb9
148 changed files with 2073 additions and 2248 deletions
|
@ -44,7 +44,7 @@ class RawQueryTests(TestCase):
|
|||
cls.r1.reviewed.add(cls.b2, cls.b3, cls.b4)
|
||||
|
||||
def assertSuccessfulRawQuery(self, model, query, expected_results,
|
||||
expected_annotations=(), params=[], translations=None):
|
||||
expected_annotations=(), params=[], translations=None):
|
||||
"""
|
||||
Execute the passed query against the passed model and check the output
|
||||
"""
|
||||
|
@ -280,10 +280,7 @@ class RawQueryTests(TestCase):
|
|||
Author.objects.raw(query)['test']
|
||||
|
||||
def test_inheritance(self):
|
||||
# date is the end of the Cuban Missile Crisis, I have no idea when
|
||||
# Wesley was born
|
||||
f = FriendlyAuthor.objects.create(first_name="Wesley", last_name="Chun",
|
||||
dob=date(1962, 10, 28))
|
||||
f = FriendlyAuthor.objects.create(first_name="Wesley", last_name="Chun", dob=date(1962, 10, 28))
|
||||
query = "SELECT * FROM raw_query_friendlyauthor"
|
||||
self.assertEqual(
|
||||
[o.pk for o in FriendlyAuthor.objects.raw(query)], [f.pk]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue