Open TinyTheBrontosaurus opened 3 years ago
update: with snappiershot
1.0.0
, the error is different. It ends up with infinite recursion.
Thanks for the bug reports! We are still working to figure this out how to fix this bug, but it most likely has to do with the complex nature of those Mocker
objects. Just wanted to let you know that we are working on this
due to complex nature of mocker
objects, current developers suggest not to snapshot them and ignoring them in the metadata via ignore=["name_of_mocker_obj_variable"]
in the assert_match
call for the time being until they can be ignored in the same manner that snappiershot ignores itself and replace trying to snapshot itself with just snapshotting a string that says "MockFixture", etc.
Describe the bug Using
mocker
causes a failure during serialization. It appearssnappiershot
is trying to serialize themocker
object but is unable to do soTo Reproduce Write a simple test using
mocker
:produces the following call stack
Expected behavior Not crashing?
Screenshots
Versions:
Additional context Add any other context about the problem here.