From 43f9df00af7335f8c14e235f13282f1e3b75259e Mon Sep 17 00:00:00 2001 From: Ryan P Kilby Date: Fri, 22 Jun 2018 20:28:24 -0400 Subject: [PATCH] Raise NotImplementedError in tests instead of pass --- tests/test_relations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_relations.py b/tests/test_relations.py index 3c76f009e..3c4b7d90b 100644 --- a/tests/test_relations.py +++ b/tests/test_relations.py @@ -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):