Note that in order to have a failing test, I had to replace
saved_object = serializer.save()
with
serializer.save()
self.comment.refresh_from_db()
because the partial serializer actually puts the data into the instance, but merely does not save it due to update_fields being incomplete. So IMO we should refactor the other tests, too.
To fix https://github.com/chibisov/drf-extensions/issues/291.
Note that in order to have a failing test, I had to replace
with
because the partial serializer actually puts the data into the instance, but merely does not save it due to
update_fields
being incomplete. So IMO we should refactor the other tests, too.