Skip to content

Commit

Permalink
add b64encode output for failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-ht committed Dec 4, 2024
1 parent 174c76d commit 7de25ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/util.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import base64
import mapsy
from contextlib import contextmanager
from os import path
Expand Down Expand Up @@ -29,4 +30,8 @@ def assert_render_equality(
assert path.exists(output_path)
with open(output_path, "rb") as f:
with open(input_path, "rb") as f_ref:
f_data = f.read()
f_ref_data = f_ref.read()
if f_data != f_ref_data:
print(f"image with issue: {base64.b64encode(f_ref_data)}")
assert f.read() == f_ref.read()

0 comments on commit 7de25ec

Please sign in to comment.