src/img2pdf_test.py: allow Bilevel as well as Grayscale type for png_gray1_img (closes: #161)

pull/176/head
parent 85cbe1d128
commit 64d27f4a8b
Signed by: josch
GPG Key ID: F2CBA5C78FBD83E1

@ -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,

Loading…
Cancel
Save