fix tests for ChoiceField IntegerChoices

This commit is contained in:
Saadullah Aleem 2023-05-01 22:17:31 +05:00
parent af08f67336
commit 5b5cfdc47b

View File

@ -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