Raise NotImplementedError in tests instead of pass

This commit is contained in:
Ryan P Kilby 2018-06-22 20:28:24 -04:00 committed by Carlton Gibson
parent ecadfc3220
commit 43f9df00af

View File

@ -200,7 +200,7 @@ class TestHyperlinkedRelatedField(APISimpleTestCase):
def test_hyperlinked_related_internal_type_error(self):
class Field(serializers.HyperlinkedRelatedField):
def get_object(self, incorrect, signature):
pass
raise NotImplementedError()
field = Field(view_name='example', queryset=self.queryset)
with pytest.raises(TypeError):