mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-01 11:00:13 +03:00
Remove pointless test
The test tested Python functionality, not django-rest-framework functionality. That is best left to the Python test suite.
This commit is contained in:
parent
0407a0df8a
commit
83c473c14e
|
@ -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:
|
class TestNotRequiredOutput:
|
||||||
def test_not_required_output_for_dict(self):
|
def test_not_required_output_for_dict(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user