Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
jvoisin
mat2
Commits
6dd48de4
Commit
6dd48de4
authored
Feb 05, 2020
by
jvoisin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve a bit the robustness of the testsuite
parent
e0f4f0e3
Pipeline
#34218
failed with stages
in 5 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
tests/test_libmat2.py
tests/test_libmat2.py
+6
-4
No files found.
tests/test_libmat2.py
View file @
6dd48de4
...
...
@@ -484,13 +484,15 @@ class TestCleaning(unittest.TestCase):
shutil
.
copy
(
'./tests/data/dirty.'
+
case
[
'name'
],
target
)
p1
=
case
[
'parser'
](
target
)
meta
=
p1
.
get_meta
()
for
k
,
v
in
case
[
'meta'
].
items
():
for
k
,
v
in
p1
.
get_meta
().
items
():
if
k
not
in
case
[
'meta'
]:
continue
if
isinstance
(
v
,
dict
):
for
_k
,
_v
in
v
.
items
():
self
.
assertEqual
(
meta
[
k
][
_k
],
_v
)
if
_k
in
case
[
'meta'
][
k
]:
self
.
assertEqual
(
_v
,
case
[
'meta'
][
k
][
_k
])
else
:
self
.
assertEqual
(
meta
[
k
]
,
v
)
self
.
assertEqual
(
v
,
case
[
'
meta
'
]
[
k
])
p1
.
lightweight_cleaning
=
True
self
.
assertTrue
(
p1
.
remove_all
())
...
...
Write
Preview
Markdown
is supported
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