src/img2pdf_test.py: do not test the depth attribute and rely on baseDepth
closes: #119
This commit is contained in:
parent
57d7e07e6b
commit
10c6901fa3
1 changed files with 0 additions and 5 deletions
|
@ -2559,10 +2559,6 @@ def tiff_rgb12_img(tmp_path_factory, tmp_normal16_png):
|
||||||
assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str(
|
assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str(
|
||||||
identify
|
identify
|
||||||
) # FIXME: should be LSB
|
) # FIXME: should be LSB
|
||||||
if identify[0].get("version", "0") < "1.0":
|
|
||||||
assert identify[0]["image"].get("depth") == 12, str(identify)
|
|
||||||
else:
|
|
||||||
assert identify[0]["image"].get("depth") == 16, str(identify)
|
|
||||||
assert identify[0]["image"].get("baseDepth") == 12, str(identify)
|
assert identify[0]["image"].get("baseDepth") == 12, str(identify)
|
||||||
assert identify[0]["image"].get("pageGeometry") == {
|
assert identify[0]["image"].get("pageGeometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2619,7 +2615,6 @@ def tiff_rgb14_img(tmp_path_factory, tmp_normal16_png):
|
||||||
assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str(
|
assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str(
|
||||||
identify
|
identify
|
||||||
) # FIXME: should be LSB
|
) # FIXME: should be LSB
|
||||||
assert identify[0]["image"].get("depth") == 16, str(identify)
|
|
||||||
assert identify[0]["image"].get("baseDepth") == 14, str(identify)
|
assert identify[0]["image"].get("baseDepth") == 14, str(identify)
|
||||||
assert identify[0]["image"].get("pageGeometry") == {
|
assert identify[0]["image"].get("pageGeometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
|
Loading…
Reference in a new issue