Compare commits

2 Commits

Author SHA1 Message Date
froxxxy 08abfc8f4d Merge pull request 'Cleanup/quality pass' (#1) from cleanup/quality-pass into main
Test / pytest (push) Successful in 11s
Reviewed-on: #1
2026-07-18 17:53:57 +02:00
Frank Schwenk a138e33c04 fix(tests): assert composite color via Pillow for IM6 CI
Test / pytest (push) Successful in 10s
Test / pytest (pull_request) Successful in 11s
ImageMagick 6 convert cannot run `identify` as a subcommand; use Pillow
mode so Gitea runners without magick pass the composite color check.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-18 17:49:16 +02:00
+4 -2
View File
@@ -340,8 +340,10 @@ class TestCompositeColor:
output = output_dir / "fg.png" output = output_dir / "fg.png"
assert output.is_file() assert output.is_file()
result = run_command([magick, "identify", "-format", "%[type]", str(output)]) from PIL import Image
assert result.stdout.strip() != "Grayscale"
with Image.open(output) as img:
assert img.mode != "L"
has_workflow_tools = check_workflow_tools() has_workflow_tools = check_workflow_tools()