Skip to content

Commit

Permalink
MAINT: Create new baseline image directory
Browse files Browse the repository at this point in the history
  • Loading branch information
has2k1 committed Aug 8, 2023
1 parent cda56c1 commit ef5650c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tools/update_baseline_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def result_to_baseline():
"""
for image in new_test_images():
new_baseline_image = baseline_path(image)
new_baseline_image.parent.mkdir(parents=True, exist_ok=True)
image.replace(new_baseline_image)


Expand Down
2 changes: 1 addition & 1 deletion tools/visualize_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
def make_row(actual, expected, failed):
_actual = f'<a href="{actual}"><img src="{actual}">'
_expected = f'<a href="{expected}"><img src="{expected}">'
_failed = f"--"
_failed = "--"

if failed:
_failed = f'<a href="{failed}">diff</a>'
Expand Down

0 comments on commit ef5650c

Please sign in to comment.