Skip to content

Commit cebac89

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

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def test_results_always(tmpdir):
464464
image = f'{test_name}/{image_type}.png'
465465
assert image in html # <img> is present even if 404
466466
image_exists = results_path.join(*image.split('/')).exists()
467-
if image_type in exists:
468-
assert image_exists
467+
if image_type in exists: # assert image so pytest prints it on error
468+
assert image and image_exists
469469
else:
470-
assert not image_exists
470+
assert image and not image_exists

0 commit comments

Comments
 (0)