Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jvoisin
mat2
Commits
cd2b9af9
Commit
cd2b9af9
authored
Dec 26, 2021
by
jvoisin
Browse files
Fix the Debian CI
This should fix
#162
parent
3378f3ab
Pipeline
#73240
passed with stages
in 4 minutes and 5 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
tests/test_libmat2.py
View file @
cd2b9af9
...
...
@@ -429,7 +429,7 @@ class TestCleaning(unittest.TestCase):
'name'
:
'gif'
,
'parser'
:
images
.
GIFParser
,
'meta'
:
{
'Comment'
:
'this is a test comment'
},
'expected_meta'
:
{},
'expected_meta'
:
{
'TransparentColor'
:
'5'
},
},{
'name'
:
'css'
,
'parser'
:
web
.
CSSParser
,
...
...
@@ -531,9 +531,11 @@ class TestCleaning(unittest.TestCase):
self
.
assertTrue
(
p1
.
remove_all
())
p2
=
case
[
'parser'
](
p1
.
output_filename
)
for
k
,
v
in
p2
.
get_meta
().
items
():
self
.
assertIn
(
k
,
case
[
'expected_meta'
])
self
.
assertIn
(
str
(
case
[
'expected_meta'
][
k
]),
str
(
v
))
meta
=
p2
.
get_meta
()
if
meta
:
for
k
,
v
in
p2
.
get_meta
().
items
():
self
.
assertIn
(
k
,
case
[
'expected_meta'
],
'"%s" is not in "%s" (%s)'
%
(
k
,
case
[
'expected_meta'
],
case
[
'name'
]))
self
.
assertIn
(
str
(
case
[
'expected_meta'
][
k
]),
str
(
v
))
self
.
assertTrue
(
p2
.
remove_all
())
os
.
remove
(
target
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment