Update tests/test_fields.py

This commit is contained in:
Asif Saif Uddin 2022-11-22 10:45:56 +06:00 committed by GitHub
parent 00cf78362d
commit 10553a0b3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1078,7 +1078,7 @@ class TestFloatFieldOverFlowError(TestCase):
field = serializers.FloatField()
with pytest.raises(serializers.ValidationError) as exec_info:
field.to_internal_value(data=math.factorial(171))
assert "int too large to convert to float" in str(exec_info.value.detail)
assert "Integer value too large to convert to float" in str(exec_info.value.detail)
class TestDecimalField(FieldValues):