mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 01:26:53 +03:00
Remove unneeded repo() test (#6632)
This commit is contained in:
parent
b4e80ac721
commit
734ca7ca8c
|
@ -386,23 +386,6 @@ class TestIncorrectlyConfigured:
|
|||
)
|
||||
|
||||
|
||||
class TestUnicodeRepr:
|
||||
def test_repr(self):
|
||||
class ExampleSerializer(serializers.Serializer):
|
||||
example = serializers.CharField()
|
||||
|
||||
class ExampleObject:
|
||||
def __init__(self):
|
||||
self.example = '한국'
|
||||
|
||||
def __repr__(self):
|
||||
return repr(self.example)
|
||||
|
||||
instance = ExampleObject()
|
||||
serializer = ExampleSerializer(instance)
|
||||
repr(serializer) # Should not error.
|
||||
|
||||
|
||||
class TestNotRequiredOutput:
|
||||
def test_not_required_output_for_dict(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user