mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 12:30:11 +03:00
Update test_serializer.py
This commit is contained in:
parent
c529d017ef
commit
4ca0f00f49
|
@ -358,6 +358,7 @@ class BasicTests(TestCase):
|
|||
def test_partial_update(self):
|
||||
serializer = PartialUpdateSerializer(data={'text': 'blah', 'extra': 'blah blah', 'textra': 'blargh',
|
||||
'text_extra': 'blarghal'})
|
||||
if serializer.is_valid():
|
||||
serializer.save()
|
||||
entry = PartialUpdateModel.objects.get(text='blah')
|
||||
second_serializer = PartialUpdateSerializer(entry, data={'textra': 'something different'}, partial=True)
|
||||
|
|
Loading…
Reference in New Issue
Block a user