Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
diffoscope
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reproducible Builds
diffoscope
Commits
60ea9cc6
Commit
60ea9cc6
authored
2 years ago
by
Chris Lamb
Browse files
Options
Downloads
Patches
Plain Diff
Fix compatibility with ImageMagick 7.1. (Closes:
#330
)
parent
ba491358
No related branches found
No related tags found
No related merge requests found
Pipeline
#496922
passed with warnings
2 years ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/comparators/test_ico_image.py
+7
-3
7 additions, 3 deletions
tests/comparators/test_ico_image.py
tests/comparators/test_jpeg_image.py
+2
-2
2 additions, 2 deletions
tests/comparators/test_jpeg_image.py
with
9 additions
and
5 deletions
tests/comparators/test_ico_image.py
+
7
−
3
View file @
60ea9cc6
...
...
@@ -24,7 +24,7 @@ from diffoscope.config import Config
from
..utils.data
import
load_fixture
,
get_data
from
..utils.tools
import
(
skip_unless_tools_exist
,
skip_unless_tool_is_
at_least
,
skip_unless_tool_is_
between
,
)
from
.test_jpeg_image
import
identify_version
...
...
@@ -61,14 +61,18 @@ def differences_meta(image1_meta, image2_meta):
@skip_unless_tools_exist
(
"
img2txt
"
,
"
identify
"
)
@skip_unless_tool_is_at_least
(
"
identify
"
,
identify_version
,
"
6.9.10-23
"
)
@skip_unless_tool_is_between
(
"
identify
"
,
identify_version
,
"
6.9.10-23
"
,
"
7.0.0
"
)
def
test_diff_meta
(
differences_meta
):
expected_diff
=
get_data
(
"
ico_image_meta_expected_diff
"
)
assert
differences_meta
[
-
1
].
unified_diff
==
expected_diff
@skip_unless_tools_exist
(
"
img2txt
"
,
"
identify
"
)
@skip_unless_tool_is_at_least
(
"
identify
"
,
identify_version
,
"
6.9.10-23
"
)
@skip_unless_tool_is_between
(
"
identify
"
,
identify_version
,
"
6.9.10-23
"
,
"
7.0.0
"
)
def
test_diff_meta2
(
differences_meta
):
expected_diff
=
get_data
(
"
ico_image_meta_expected_diff_v2
"
)
assert
differences_meta
[
-
1
].
unified_diff
==
expected_diff
...
...
This diff is collapsed.
Click to expand it.
tests/comparators/test_jpeg_image.py
+
2
−
2
View file @
60ea9cc6
...
...
@@ -24,7 +24,7 @@ from diffoscope.comparators.image import JPEGImageFile
from
diffoscope.comparators.missing_file
import
MissingFile
from
..utils.data
import
load_fixture
,
get_data
from
..utils.tools
import
skip_unless_tools_exist
,
skip_unless_tool_is_
at_least
from
..utils.tools
import
skip_unless_tools_exist
,
skip_unless_tool_is_
between
image1
=
load_fixture
(
"
test1.jpg
"
)
...
...
@@ -76,7 +76,7 @@ def differences_meta(image1_meta, image2_meta):
@skip_unless_tools_exist
(
"
img2txt
"
,
"
identify
"
)
@skip_unless_tool_is_
at_least
(
"
identify
"
,
identify_version
,
"
6.9.6
"
)
@skip_unless_tool_is_
between
(
"
identify
"
,
identify_version
,
"
6.9.6
"
,
"
7.0.0
"
)
def
test_diff_meta
(
differences_meta
):
expected_diff
=
get_data
(
"
jpeg_image_meta_expected_diff
"
)
assert
differences_meta
[
-
1
].
unified_diff
==
expected_diff
...
...
This diff is collapsed.
Click to expand it.
Mattia Rizzolo
@mattia
mentioned in issue
#332
·
2 years ago
mentioned in issue
#332
mentioned in issue #332
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment