mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-09-16 17:22:32 +03:00
fix tests for ChoiceField IntegerChoices
This commit is contained in:
parent
af08f67336
commit
5b5cfdc47b
|
@ -1836,8 +1836,8 @@ class TestChoiceField(FieldValues):
|
|||
(ChoiceCase.first, "1"),
|
||||
(ChoiceCase.second, "2")
|
||||
]
|
||||
field = serializers.ChoiceField(choices=choices)
|
||||
|
||||
field = serializers.ChoiceField(choices=choices)
|
||||
assert field.run_validation(1) == 1
|
||||
assert field.run_validation(ChoiceCase.first) == 1
|
||||
assert field.run_validation("1") == 1
|
||||
|
|
Loading…
Reference in New Issue
Block a user