We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9386bbf commit d6fc48aCopy full SHA for d6fc48a
tests/unit/test_simvue.py
@@ -134,3 +134,14 @@ def test_pytorch_tensor_serialization():
134
array_out = Deserializer().deserialize(serialized, mime_type)
135
136
assert (array == array_out).all()
137
+
138
+def test_pickle_serialization():
139
+ """
140
+ Check that a dictionary can be serialized then deserialized successfully
141
142
+ data = {'a': 1.0, 'b': 'test'}
143
144
+ serialized, mime_type = Serializer().serialize(data, allow_pickle=True)
145
+ data_out = Deserializer().deserialize(serialized, mime_type, allow_pickle=True)
146
147
+ assert (data == data_out)
0 commit comments