src/img2pdf_test.py: do not test format descriptions
#110
Merged
josch
merged 2 commits from paper/img2pdf:tests-no-description
into main
3 years ago
Loading…
Reference in New Issue
There is no content yet.
Delete Branch 'paper/img2pdf:tests-no-description'
Deleting a branch is permanent. It CANNOT be undone. Continue?
There is no need to test the format description when the format code is tested before. Descriptions can change, codes shouldn't.
The descriptions cannot change either. The JSON Format is not supposed to change unless its version is bumped: https://github.com/ImageMagick/ImageMagick6/issues/90#issuecomment-668281074
If the JSON output changed without a version bump, then that's a bug in imagemagick.
I don't think there is a reason to test this, the correctness is already tested on the line above. This PR fixes these tests for imagemagick 7 while being compatible with imagemagick 6.
I'm not saying you are wrong and I'm not saying that I won't accept your pull request (thanks for preparing it!) -- but I first want to contact the imagemagick developers about this issue because the format shouldn't have changed without a version bump.
I think we don't understand each other, the description changed with a version bump - 6 to 7.
853a1ec363
into main 3 years ago853a1ec363
.Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.