Skip to content

Commit

Permalink
fix, wrong file converted..
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-stoll committed May 29, 2024
1 parent cc8e0ba commit a5e255a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ui/test_startpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit a5e255a

Please sign in to comment.