mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-29 17:39:48 +03:00
Fix indentation in test
This commit is contained in:
parent
82e020f5a1
commit
db70ef97c8
|
@ -107,7 +107,7 @@ class TestPrimaryKeyRelatedField(APISimpleTestCase):
|
||||||
msg = excinfo.value.detail[0]
|
msg = excinfo.value.detail[0]
|
||||||
assert msg == 'Incorrect type. Expected pk value, received BadType.'
|
assert msg == 'Incorrect type. Expected pk value, received BadType.'
|
||||||
|
|
||||||
def test_pk_related_lookup_bool(self):
|
def test_pk_related_lookup_bool(self):
|
||||||
with pytest.raises(serializers.ValidationError) as excinfo:
|
with pytest.raises(serializers.ValidationError) as excinfo:
|
||||||
self.field.to_internal_value(True)
|
self.field.to_internal_value(True)
|
||||||
msg = excinfo.value.detail[0]
|
msg = excinfo.value.detail[0]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user