-
I'm not sure if this is possible with syrupy but here goes. I have a function that depends on a large machine learning model. I want to mock the output of the machine learning model but it should be mocked by actual snapshots (from a Similar to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This has come up a few times. The main issue is that syrupy was not built with deserialization in mind. When we do snapshot equality checks we compare 2 serialized strings, not the deserialized data. I think it's theoretically possible with a custom extension, perhaps even with the single file extension that stores raw data with no transformations. |
Beta Was this translation helpful? Give feedback.
This has come up a few times. The main issue is that syrupy was not built with deserialization in mind. When we do snapshot equality checks we compare 2 serialized strings, not the deserialized data. I think it's theoretically possible with a custom extension, perhaps even with the single file extension that stores raw data with no transformations.
#928