Commit 33d6d4a4 by Tom Christie

Test more types of behavior in test_iter_options

parent 24dec32e
......@@ -1114,7 +1114,8 @@ class TestChoiceField(FieldValues):
field = serializers.ChoiceField(
choices=[
('Numbers', ['integer', 'float']),
('Strings', ['text', 'email', 'url'])
('Strings', ['text', 'email', 'url']),
'boolean'
]
)
items = list(field.iter_options())
......@@ -1132,6 +1133,8 @@ class TestChoiceField(FieldValues):
assert items[7].value == 'url'
assert items[8].end_option_group
assert items[9].value == 'boolean'
class TestChoiceFieldWithType(FieldValues):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment