src/img2pdf_test.py: IM7 dropped 'baseType' in json output, so use 'type' instead which works for both IM6 and IM7

This commit is contained in:
Johannes Schauer Marin Rodrigues 2023-08-06 19:27:01 +02:00
parent acc25a4926
commit e05580a49a
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -3873,7 +3873,7 @@ def miff_cmyk8_img(tmp_path_factory, tmp_normal_png):
assert "image" in identify[0] assert "image" in identify[0]
assert identify[0]["image"].get("format") == "MIFF", str(identify) assert identify[0]["image"].get("format") == "MIFF", str(identify)
assert identify[0]["image"].get("class") == "DirectClass" assert identify[0]["image"].get("class") == "DirectClass"
assert identify[0]["image"].get("baseType") == "ColorSeparation" assert identify[0]["image"].get("type") == "ColorSeparation"
assert identify[0]["image"].get("geometry") == { assert identify[0]["image"].get("geometry") == {
"width": 60, "width": 60,
"height": 60, "height": 60,
@ -3917,7 +3917,7 @@ def miff_cmyk16_img(tmp_path_factory, tmp_normal_png):
assert "image" in identify[0] assert "image" in identify[0]
assert identify[0]["image"].get("format") == "MIFF", str(identify) assert identify[0]["image"].get("format") == "MIFF", str(identify)
assert identify[0]["image"].get("class") == "DirectClass" assert identify[0]["image"].get("class") == "DirectClass"
assert identify[0]["image"].get("baseType") == "ColorSeparation" assert identify[0]["image"].get("type") == "ColorSeparation"
assert identify[0]["image"].get("geometry") == { assert identify[0]["image"].get("geometry") == {
"width": 60, "width": 60,
"height": 60, "height": 60,
@ -3952,7 +3952,7 @@ def miff_rgb8_img(tmp_path_factory, tmp_normal_png):
assert "image" in identify[0] assert "image" in identify[0]
assert identify[0]["image"].get("format") == "MIFF", str(identify) assert identify[0]["image"].get("format") == "MIFF", str(identify)
assert identify[0]["image"].get("class") == "DirectClass" assert identify[0]["image"].get("class") == "DirectClass"
assert identify[0]["image"].get("baseType") == "TrueColor" assert identify[0]["image"].get("type") == "TrueColor"
assert identify[0]["image"].get("geometry") == { assert identify[0]["image"].get("geometry") == {
"width": 60, "width": 60,
"height": 60, "height": 60,