Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 11, 2022
1 parent 602d6dc commit bcb10e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def check_image(root_folder, image, name, level=0.9):
if False:
cv2.imwrite(expected_name, image)
return
if not os.path.isfile(expected_name):
cv2.imwrite(result_name, image)
if not os.path.exists(expected_name):
cv2.imwrite(expected_name, image)
assert not os.path.isfile(expected_name), "Expected image not found: " + expected_name
expected = cv2.imread(expected_name)
assert expected is not None, "Wrong image: " + expected_name
Expand Down

0 comments on commit bcb10e1

Please # to comment.