-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Description
I would like to test a code that produces PNG file as bytes
. Snapshot should be saved as PNG file directly. GitHub PRs would become super useful, because I can compare pictures directly just by looking at them:
There is FileSnapshot
functionality, but it's not directly useful for my case. FileSnapshot
requires file path as an argument. I need to assert file content. Temporary file would work, but seems a bit extra and probably slower.
It would be cool to have something like snapshot.assert_match(png_content, save_as='.png')
.
Thoughts?
dulguunpc
Metadata
Metadata
Assignees
Labels
No labels