Skip to content

Commit a8737f1

Browse files
committed
Add baseline images
Signed-off-by: Conor MacBride <[email protected]>
1 parent b5a48ac commit a8737f1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
22.4 KB
Loading
16.5 KB
Loading

tests/test_pytest_mpl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def test_results_always(tmpdir):
430430
image = f'{test_name}/{image_type}.png'
431431
assert image in html # <img> is present even if 404
432432
image_exists = results_path.join(*image.split('/')).exists()
433-
if image_type in exists:
434-
assert image_exists
433+
if image_type in exists: # assert image so pytest prints it on error
434+
assert image and image_exists
435435
else:
436-
assert not image_exists
436+
assert image and not image_exists

0 commit comments

Comments
 (0)