From 64d27f4a8bda2ab21ed34775c1bedfc853d42bf2 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Sun, 11 Jun 2023 13:24:30 +0200 Subject: [PATCH] src/img2pdf_test.py: allow Bilevel as well as Grayscale type for png_gray1_img (closes: #161) --- src/img2pdf_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/img2pdf_test.py b/src/img2pdf_test.py index f89fa74..342a120 100755 --- a/src/img2pdf_test.py +++ b/src/img2pdf_test.py @@ -1628,7 +1628,7 @@ def png_gray1_img(tmp_path_factory, tmp_gray1_png): "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "Gray", str(identify) - assert identify[0]["image"].get("type") == "Bilevel", str(identify) + assert identify[0]["image"].get("type") in ["Bilevel", "Grayscale"], str(identify) assert identify[0]["image"].get("depth") == 1, str(identify) assert identify[0]["image"].get("pageGeometry") == { "width": 60,