Skip to content

Commit 3e6f2ca

Browse files
committed
Don't show test if no result image
Signed-off-by: Conor MacBride <[email protected]>
1 parent ab5b990 commit 3e6f2ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pytest_mpl/plugin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,9 @@ def generate_summary_html(self):
756756
for test_name in sorted(self._test_results.keys()):
757757
summary = self._test_results[test_name]
758758

759+
if not self.results_always and summary['result_image'] is None:
760+
continue # Don't show test if no result image
761+
759762
if summary['rms'] is None and summary['tolerance'] is not None:
760763
rms = (f'<div class="rms passed">\n'
761764
f' <strong>RMS:</strong> '

0 commit comments

Comments
 (0)