mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fix all violators of E231
This commit is contained in:
@@ -144,7 +144,7 @@ class SerializersTestBase(object):
|
||||
serialized field list - it replaces the pk identifier.
|
||||
"""
|
||||
profile = AuthorProfile(author=self.joe,
|
||||
date_of_birth=datetime(1970,1,1))
|
||||
date_of_birth=datetime(1970, 1, 1))
|
||||
profile.save()
|
||||
serial_str = serializers.serialize(self.serializer_name,
|
||||
AuthorProfile.objects.all())
|
||||
@@ -155,7 +155,7 @@ class SerializersTestBase(object):
|
||||
|
||||
def test_serialize_field_subset(self):
|
||||
"""Tests that output can be restricted to a subset of fields"""
|
||||
valid_fields = ('headline','pub_date')
|
||||
valid_fields = ('headline', 'pub_date')
|
||||
invalid_fields = ("author", "categories")
|
||||
serial_str = serializers.serialize(self.serializer_name,
|
||||
Article.objects.all(),
|
||||
|
||||
Reference in New Issue
Block a user