You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When serializing something, it is useful to be able to deserialize it back into a useful object... ksuid doesn't seem to allow this currently
I'd expect something like the following to work
def test_ksuid_deserializable():
from ksuid import ksuid
id = ksuid()
serialized_id = str(id)
id2 = ksuid(serialized_id)
# not the same object in memory
assert id is not id2
# but they serialize to the same value
assert str(id) == str(id2)
The text was updated successfully, but these errors were encountered:
When serializing something, it is useful to be able to deserialize it back into a useful object... ksuid doesn't seem to allow this currently
I'd expect something like the following to work
The text was updated successfully, but these errors were encountered: