Skip to content

Commit 33d6d4a

Browse files
committed
Test more types of behavior in test_iter_options
1 parent 24dec32 commit 33d6d4a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_fields.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,8 @@ def test_iter_options(self):
11141114
field = serializers.ChoiceField(
11151115
choices=[
11161116
('Numbers', ['integer', 'float']),
1117-
('Strings', ['text', 'email', 'url'])
1117+
('Strings', ['text', 'email', 'url']),
1118+
'boolean'
11181119
]
11191120
)
11201121
items = list(field.iter_options())
@@ -1132,6 +1133,8 @@ def test_iter_options(self):
11321133
assert items[7].value == 'url'
11331134
assert items[8].end_option_group
11341135

1136+
assert items[9].value == 'boolean'
1137+
11351138

11361139
class TestChoiceFieldWithType(FieldValues):
11371140
"""

0 commit comments

Comments
 (0)