Skip to content

Commit 6428ac4

Browse files
committed
test: fix unit tests
1 parent 2b534b7 commit 6428ac4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/test_fields.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2167,16 +2167,18 @@ class TestMultipleChoiceField(FieldValues):
21672167
"""
21682168

21692169
valid_inputs = {
2170-
(): set(),
2171-
('aircon',): {'aircon'},
2172-
('aircon', 'manual'): {'aircon', 'manual'},
2170+
(): list(),
2171+
("aircon",): ["aircon"],
2172+
("aircon", "manual"): ["aircon", "manual"],
2173+
("manual", "aircon"): ["manual", "aircon"],
21732174
}
21742175
invalid_inputs = {
21752176
"abc": ['Expected a list of items but got type "str".'],
21762177
("aircon", "incorrect"): ['"incorrect" is not a valid choice.'],
21772178
}
21782179
outputs = [
2179-
(['aircon', 'manual', 'incorrect'], {'aircon', 'manual', 'incorrect'})
2180+
(["aircon", "manual", "incorrect"], ["aircon", "manual", "incorrect"]),
2181+
(["manual", "aircon", "incorrect"], ["manual", "aircon", "incorrect"]),
21802182
]
21812183
field = serializers.MultipleChoiceField(
21822184
choices=[

0 commit comments

Comments
 (0)