mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-02 11:30:12 +03:00
Raise NotImplementedError in tests instead of pass
This commit is contained in:
parent
ecadfc3220
commit
43f9df00af
|
@ -200,7 +200,7 @@ class TestHyperlinkedRelatedField(APISimpleTestCase):
|
||||||
def test_hyperlinked_related_internal_type_error(self):
|
def test_hyperlinked_related_internal_type_error(self):
|
||||||
class Field(serializers.HyperlinkedRelatedField):
|
class Field(serializers.HyperlinkedRelatedField):
|
||||||
def get_object(self, incorrect, signature):
|
def get_object(self, incorrect, signature):
|
||||||
pass
|
raise NotImplementedError()
|
||||||
|
|
||||||
field = Field(view_name='example', queryset=self.queryset)
|
field = Field(view_name='example', queryset=self.queryset)
|
||||||
with pytest.raises(TypeError):
|
with pytest.raises(TypeError):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user