Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit26830c3

Browse files
authored
Fix QueryDict type error in test (#8475)
QueryDict takes a `str` argument. Discovered while working ondjangorestframework-stubs.
1 parente7af8d6 commit26830c3

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
deftest_against_partial_and_full_updates(self):
18661866
field=serializers.MultipleChoiceField(choices=(('a','a'), ('b','b')))
18671867
field.partial=False
1868-
assertfield.get_value(QueryDict({}))== []
1868+
assertfield.get_value(QueryDict(''))== []
18691869
field.partial=True
1870-
assertfield.get_value(QueryDict({}))==rest_framework.fields.empty
1870+
assertfield.get_value(QueryDict(''))==rest_framework.fields.empty
18711871

18721872

18731873
classTestEmptyMultipleChoiceField(FieldValues):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp