src/img2pdf_test.py: allow Bilevel as well as Grayscale type for png_gray1_img (closes: #161)
This commit is contained in:
parent
85cbe1d128
commit
64d27f4a8b
1 changed files with 1 additions and 1 deletions
|
@ -1628,7 +1628,7 @@ def png_gray1_img(tmp_path_factory, tmp_gray1_png):
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("colorspace") == "Gray", 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("depth") == 1, str(identify)
|
||||||
assert identify[0]["image"].get("pageGeometry") == {
|
assert identify[0]["image"].get("pageGeometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
|
Loading…
Reference in a new issue