We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0f4dfd commit c752e96Copy full SHA for c752e96
tests/test_serializer_lists.py
@@ -374,7 +374,7 @@ class ListSerializer(serializers.Serializer):
374
assert not serializer.is_valid()
375
assert serializer.validated_data == []
376
assert len(serializer.errors) == 1
377
- 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.'
378
379
def test_update_allow_empty_false(self):
380
class ListSerializer(serializers.Serializer):
0 commit comments