mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 11:04:02 +03:00
Fix QueryDict type error in test (#8475)
QueryDict takes a `str` argument. Discovered while working on djangorestframework-stubs.
This commit is contained in:
parent
e7af8d662b
commit
26830c3d2d
|
@ -1865,9 +1865,9 @@ class TestMultipleChoiceField(FieldValues):
|
|||
def test_against_partial_and_full_updates(self):
|
||||
field = serializers.MultipleChoiceField(choices=(('a', 'a'), ('b', 'b')))
|
||||
field.partial = False
|
||||
assert field.get_value(QueryDict({})) == []
|
||||
assert field.get_value(QueryDict('')) == []
|
||||
field.partial = True
|
||||
assert field.get_value(QueryDict({})) == rest_framework.fields.empty
|
||||
assert field.get_value(QueryDict('')) == rest_framework.fields.empty
|
||||
|
||||
|
||||
class TestEmptyMultipleChoiceField(FieldValues):
|
||||
|
|
Loading…
Reference in New Issue
Block a user