mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Failing test case for #2894
This commit is contained in:
parent
a0f66ffc69
commit
989c08109b
|
@ -1,6 +1,7 @@
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
from rest_framework import serializers
|
from rest_framework import serializers
|
||||||
|
import rest_framework
|
||||||
import datetime
|
import datetime
|
||||||
import django
|
import django
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -1017,6 +1018,12 @@ class TestMultipleChoiceField(FieldValues):
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def test_against_partial_updates(self):
|
||||||
|
# serializer = self.Serializer(data=MockHTMLDict())
|
||||||
|
from django.http import QueryDict
|
||||||
|
field = serializers.MultipleChoiceField(choices=(('a', 'a'), ('b', 'b')))
|
||||||
|
assert field.get_value(QueryDict({})) == rest_framework.fields.empty
|
||||||
|
|
||||||
|
|
||||||
# File serializers...
|
# File serializers...
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user