From a5e255afc67b76b7f75191c49ae5948805fcdb20 Mon Sep 17 00:00:00 2001 From: Markus Stoll Date: Wed, 29 May 2024 09:58:49 +0200 Subject: [PATCH] fix, wrong file converted.. --- tests/ui/test_startpage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ui/test_startpage.py b/tests/ui/test_startpage.py index 832017e7..6f0ba5f0 100644 --- a/tests/ui/test_startpage.py +++ b/tests/ui/test_startpage.py @@ -36,12 +36,12 @@ def take_and_diff_snapshot( if reference_screenshot_path.is_file(): # make sure both are in the same color mode im1 = Image.open(str(reference_screenshot_path)) - im2 = Image.open(str(diff_path)) + im2 = Image.open(str(new_screenshot_path)) if im1.mode != im2.mode: im1 = im1.convert("RGB") im2 = im2.convert("RGB") im1.save(str(reference_screenshot_path)) - im2.save(str(diff_path)) + im2.save(str(new_screenshot_path)) diff_ratio = diff( str(reference_screenshot_path),