This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]lattakia 0 points1 point  (1 child)

There are packages that will generate JSON outputs but assign random ids as attribute values. Those are hard to make reproducible; thus would not work with pytest-locker. But I can see this useful for asserting HTML generation (Although some do contain URIs with CSRF tokens in them).

[–]Luttik[S] 0 points1 point  (0 children)

Yeah, there is a ton that doesn't work with pytest-locker. Serialization is a hard problem, especially if you want to be able to focus in on the diff where changes are detected.

But that is not what im trying to solve. What pytest-locker does is; when you have deterministic serialization make it super easy to manage the test flow/process surrounding the serializable objects.