diff --git a/tools/update_baseline_images.py b/tools/update_baseline_images.py index f38346193..e5dd4c471 100644 --- a/tools/update_baseline_images.py +++ b/tools/update_baseline_images.py @@ -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) diff --git a/tools/visualize_tests.py b/tools/visualize_tests.py index c3d754eb6..f04b1673e 100644 --- a/tools/visualize_tests.py +++ b/tools/visualize_tests.py @@ -85,7 +85,7 @@ def make_row(actual, expected, failed): _actual = f'' _expected = f'' - _failed = f"--" + _failed = "--" if failed: _failed = f'diff'