src/img2pdf_test.py: do not test format descriptions #110
Loading…
Reference in a new issue
No description provided.
Delete branch "paper/img2pdf:tests-no-description"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. 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.