Skip to content

Commit f969143

Browse files
tienne-Bsaadullahaleem
authored andcommitted
Make set_value a method within Serializer (encode#8001)
* Make set_value a static method for Serializers As an alternative to encode#7671, let the method be overridden if needed. As the function is only used for serializers, it has a better place in the Serializer class. * Set `set_value` as an object (non-static) method * Add tests for set_value() These tests follow the examples given in the method.
1 parent 869d46f commit f969143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,4 +843,4 @@ def test_exception_raised_when_data_and_instance_length_different(self):
843843
instance=self.objs[:-1],
844844
many=True,
845845
partial=True,
846-
)
846+
)

0 commit comments

Comments
 (0)