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
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: