Skip to content

Commit 26830c3

Browse files
authored
Fix QueryDict type error in test (#8475)
QueryDict takes a `str` argument. Discovered while working on djangorestframework-stubs.
1 parent e7af8d6 commit 26830c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_fields.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,9 +1865,9 @@ class TestMultipleChoiceField(FieldValues):
18651865
def test_against_partial_and_full_updates(self):
18661866
field = serializers.MultipleChoiceField(choices=(('a', 'a'), ('b', 'b')))
18671867
field.partial = False
1868-
assert field.get_value(QueryDict({})) == []
1868+
assert field.get_value(QueryDict('')) == []
18691869
field.partial = True
1870-
assert field.get_value(QueryDict({})) == rest_framework.fields.empty
1870+
assert field.get_value(QueryDict('')) == rest_framework.fields.empty
18711871

18721872

18731873
class TestEmptyMultipleChoiceField(FieldValues):

0 commit comments

Comments
 (0)