mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 17:09:59 +03:00
Added test case causes exception in DecimalField deserialization
This commit is contained in:
parent
f98b6f3577
commit
896b872375
|
@ -1080,6 +1080,7 @@ class TestDecimalField(FieldValues):
|
||||||
invalid_inputs = (
|
invalid_inputs = (
|
||||||
('abc', ["A valid number is required."]),
|
('abc', ["A valid number is required."]),
|
||||||
(Decimal('Nan'), ["A valid number is required."]),
|
(Decimal('Nan'), ["A valid number is required."]),
|
||||||
|
(Decimal('Snan'), ["A valid number is required."]),
|
||||||
(Decimal('Inf'), ["A valid number is required."]),
|
(Decimal('Inf'), ["A valid number is required."]),
|
||||||
('12.345', ["Ensure that there are no more than 3 digits in total."]),
|
('12.345', ["Ensure that there are no more than 3 digits in total."]),
|
||||||
(200000000000.0, ["Ensure that there are no more than 3 digits in total."]),
|
(200000000000.0, ["Ensure that there are no more than 3 digits in total."]),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user