Skip to content

Commit

Permalink
Fix diff with mask
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Dec 22, 2023
1 parent 7004a3b commit 915ba99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions c2cwsgiutils/acceptance/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def check_image(
assert (
expected.shape[0] == mask.shape[0] and expected.shape[1] == mask.shape[1]
), f"Mask and expected image should have the same shape ({mask.shape} != {expected.shape})"
expected[mask] = [255, 255, 255]

assert (
expected.shape == image_to_check.shape
Expand Down

0 comments on commit 915ba99

Please sign in to comment.