File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
pytest_mpl/summary/templates Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,13 @@ <h5>Show tests which have...</h5>
37
37
{{ filter_option('image-diff', 'differing images') }}
38
38
{{ filter_option('image-missing', 'no baseline image') }}
39
39
</ div >
40
+ {% if results.warn_missing['baseline_hash'] -%}
40
41
< div class ="list-group m-2 mpl-hash ">
41
42
{{ filter_option('hash-match', 'matching hashes') }}
42
43
{{ filter_option('hash-diff', 'differing hashes') }}
43
44
{{ filter_option('hash-missing', 'no baseline hash') }}
44
45
</ div >
46
+ {%- endif %}
45
47
< div class ="d-flex ">
46
48
< button type ="submit " class ="btn btn-primary m-2 " data-bs-dismiss ="offcanvas "> Apply</ button >
47
49
< button type ="submit " class ="btn btn-outline-secondary m-2 " onclick ="resetFilters() "> Reset</ button >
Original file line number Diff line number Diff line change @@ -44,13 +44,15 @@ <h5 class="card-title">{{ r.name }}</h5>
44
44
{{ pre_data('tolerance', r.tolerance, 'Tolerance') }}
45
45
</ div >
46
46
</ div >
47
+ {% if results.warn_missing['baseline_hash'] -%}
47
48
< div class ="card text-white bg-{{ r.hash_status | status_class }} mb-3 mpl-hash ">
48
49
< div class ="card-header "> {{ r.hash_status | hash_status_msg }}</ div >
49
50
< div class ="card-body ">
50
51
{{ pre_data('baseline_hash', r.baseline_hash, 'Baseline') }}
51
52
{{ pre_data('result_hash', r.result_hash, 'Result') }}
52
53
</ div >
53
54
</ div >
55
+ {%- endif %}
54
56
</ div >
55
57
</ div >
56
58
</ div >
You can’t perform that action at this time.
0 commit comments