From e05580a49a1d2cc2822dcd0d13b8386da6293e2b Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Sun, 6 Aug 2023 19:27:01 +0200 Subject: [PATCH] src/img2pdf_test.py: IM7 dropped 'baseType' in json output, so use 'type' instead which works for both IM6 and IM7 --- src/img2pdf_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/img2pdf_test.py b/src/img2pdf_test.py index e1d2b66..5d9ce85 100755 --- a/src/img2pdf_test.py +++ b/src/img2pdf_test.py @@ -3873,7 +3873,7 @@ def miff_cmyk8_img(tmp_path_factory, tmp_normal_png): assert "image" in identify[0] assert identify[0]["image"].get("format") == "MIFF", str(identify) 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") == { "width": 60, "height": 60, @@ -3917,7 +3917,7 @@ def miff_cmyk16_img(tmp_path_factory, tmp_normal_png): assert "image" in identify[0] assert identify[0]["image"].get("format") == "MIFF", str(identify) 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") == { "width": 60, "height": 60, @@ -3952,7 +3952,7 @@ def miff_rgb8_img(tmp_path_factory, tmp_normal_png): assert "image" in identify[0] assert identify[0]["image"].get("format") == "MIFF", str(identify) 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") == { "width": 60, "height": 60,