8000 Test against JSON summaries (and bugfixes) by ConorMacBride · Pull Request #134 · matplotlib/pytest-mpl · GitHub
[go: up one dir, main page]

Skip to content

Test against JSON summaries (and bugfixes) #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Feb 9, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
Prev Previous commit
Next Next commit
Fix bug in html without hash comparison
  • Loading branch information
ConorMacBride committed Feb 5, 2022
commit f82256d81d085deedb5e0de3dc19b20b814834cf
2 changes: 2 additions & 0 deletions pytest_mpl/summary/templates/filter.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ <h5>Show tests which have...</h5>
{{ filter_option('image-diff', 'differing images') }}
{{ filter_option('image-missing', 'no baseline image') }}
</div>
{% if results.warn_missing['baseline_hash'] -%}
<div class="list-group m-2 mpl-hash">
{{ filter_option('hash-match', 'matching hashes') }}
{{ filter_option('hash-diff', 'differing hashes') }}
{{ filter_option('hash-missing', 'no baseline hash') }}
</div>
{%- endif %}
<div class="d-flex">
<button type="submit" class="btn btn-primary m-2" data-bs-dismiss="offcanvas">Apply</button>
<button type="submit" class="btn btn-outline-secondary m-2" onclick="resetFilters()">Reset</button>
Expand Down
2 changes: 2 additions & 0 deletions pytest_mpl/summary/templates/result_images.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ <h5 class="card-title">{{ r.name }}</h5>
{{ pre_data('toler 655F ance', r.tolerance, 'Tolerance') }}
</div>
</div>
{% if results.warn_missing['baseline_hash'] -%}
<div class="card text-white bg-{{ r.hash_status | status_class }} mb-3 mpl-hash">
<div class="card-header">{{ r.hash_status | hash_status_msg }}</div>
<div class="card-body">
{{ pre_data('baseline_hash', r.baseline_hash, 'Baseline') }}
{{ pre_data('result_hash', r.result_hash, 'Result') }}
</div>
</div>
{%- endif %}
</div>
</div>
</div>
Expand Down
0