mirror of
https://github.com/django/django.git
synced 2025-10-30 00:56:09 +00:00
Fix all violators of E231
This commit is contained in:
@@ -125,7 +125,7 @@ class LookupTests(TestCase):
|
||||
def test_values(self):
|
||||
# values() returns a list of dictionaries instead of object instances --
|
||||
# and you can specify which fields you want to retrieve.
|
||||
identity = lambda x:x
|
||||
identity = lambda x: x
|
||||
self.assertQuerysetEqual(Article.objects.values('headline'),
|
||||
[
|
||||
{'headline': 'Article 5'},
|
||||
@@ -256,7 +256,7 @@ class LookupTests(TestCase):
|
||||
# returned as a list of tuples, rather than a list of dictionaries.
|
||||
# Within each tuple, the order of the elements is the same as the order
|
||||
# of fields in the values_list() call.
|
||||
identity = lambda x:x
|
||||
identity = lambda x: x
|
||||
self.assertQuerysetEqual(Article.objects.values_list('headline'),
|
||||
[
|
||||
('Article 5',),
|
||||
|
||||
Reference in New Issue
Block a user