mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-25 00:34:21 +03:00
Fix test for py32-django18.
This commit is contained in:
parent
c0f4dfd8f3
commit
c752e9618f
|
@ -374,7 +374,7 @@ class TestSerializerPartialUsage:
|
|||
assert not serializer.is_valid()
|
||||
assert serializer.validated_data == []
|
||||
assert len(serializer.errors) == 1
|
||||
assert serializer.errors['non_field_errors'] == [u'This list may not be empty.']
|
||||
assert serializer.errors['non_field_errors'][0] == 'This list may not be empty.'
|
||||
|
||||
def test_update_allow_empty_false(self):
|
||||
class ListSerializer(serializers.Serializer):
|
||||
|
|
Loading…
Reference in New Issue
Block a user