This commit is contained in:
Nancy Eckenthal 2023-05-03 19:33:02 -04:00
parent 7704a244d6
commit 5a09412fd9

View File

@ -758,7 +758,7 @@ class TestBooleanField(FieldValues):
with pytest.raises(serializers.ValidationError) as exc_info:
field.run_validation(input_value)
expected = ['Must be a valid boolean.']
assert exc_info.value.detail == expected
assert exc_info.value.detail == expected
class TestNullableBooleanField(TestBooleanField):
@ -2670,4 +2670,4 @@ class TestValidationErrorCode:
code=expected_code
),
]
}
}