From a138e33c046e047423e1902308c1e7449c8410c4 Mon Sep 17 00:00:00 2001 From: Frank Schwenk Date: Sat, 18 Jul 2026 17:49:16 +0200 Subject: [PATCH] fix(tests): assert composite color via Pillow for IM6 CI 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 --- tests/test_workflow_modules.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_workflow_modules.py b/tests/test_workflow_modules.py index d8e1d2c..4c10b6b 100644 --- a/tests/test_workflow_modules.py +++ b/tests/test_workflow_modules.py @@ -340,8 +340,10 @@ class TestCompositeColor: output = output_dir / "fg.png" assert output.is_file() - result = run_command([magick, "identify", "-format", "%[type]", str(output)]) - assert result.stdout.strip() != "Grayscale" + from PIL import Image + + with Image.open(output) as img: + assert img.mode != "L" has_workflow_tools = check_workflow_tools()