Commit 94e2d3ca by Xavier Ordoquy

Test case upgrade to use partial data

parent 989c0810
......@@ -1018,10 +1018,13 @@ class TestMultipleChoiceField(FieldValues):
]
)
def test_against_partial_updates(self):
def test_against_partial_and_full_updates(self):
# serializer = self.Serializer(data=MockHTMLDict())
from django.http import QueryDict
field = serializers.MultipleChoiceField(choices=(('a', 'a'), ('b', 'b')))
field.partial = False
assert field.get_value(QueryDict({})) == []
field.partial = True
assert field.get_value(QueryDict({})) == rest_framework.fields.empty
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment