Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
banesullivan committed Feb 11, 2024
1 parent d577139 commit cac46dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def _compare(image: bytes):
else:
with open(gen / filename, "wb") as f:
f.write(image)
assert compare_images(path / filename, gen / filename, 0.1) is None
result = compare_images(path / filename, gen / filename, 0.1, in_decorator=True)
assert (
result is None
), f"Image comparison failed with RMS {result['rms']}. Difference in {result['diff']}"

return _compare

0 comments on commit cac46dc

Please sign in to comment.