Skip to content

Commit

Permalink
Merge d3b3087 into 02be3a9
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra committed Oct 16, 2020
2 parents 02be3a9 + d3b3087 commit 1ac5903
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,13 @@ def get_spidev():


def assert_identical_image(reference, target, img_path):
"""
:param img_path: Location of image.
:type img_path: str
"""
bbox = ImageChops.difference(reference, target).getbbox()
assert bbox is None, '{0} is not identical to generated image'.format(
img_path.name)
img_path)


def i2c_error(path_name, err_no):
Expand Down
Binary file modified tests/reference/images/hotspot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/reference/images/portrait.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/reference/images/set_position.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1ac5903

Please sign in to comment.