Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
limbra
limbra
Commits
67991f2d
Commit
67991f2d
authored
Sep 21, 2016
by
LE GAC Renaud
Browse files
Update test_acl_cds1951625 to be more robust.
parent
15595758
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
tests/harvest_tools/CheckAndFix/test_acl_cds1951625_fix.py
tests/harvest_tools/CheckAndFix/test_acl_cds1951625_fix.py
+6
-1
No files found.
tests/harvest_tools/CheckAndFix/test_acl_cds1951625_fix.py
View file @
67991f2d
...
...
@@ -62,7 +62,12 @@ def test_find_authors_by_affiliation(recordfix):
svc
=
CheckAndFix
()
rex
=
svc
.
_get_reg_institute
()
assert
rex
==
"^CPPM, Marseille|^Centre de Physique des Particules de Marseille (CPPM)|^Marseille, CPPM"
references
=
set
([
"^CPPM, Marseille"
,
"^Centre de Physique des Particules de Marseille (CPPM)"
,
"^Marseille, CPPM"
])
values
=
set
(
rex
.
split
(
"|"
))
assert
values
==
references
authors
=
recordfix
.
find_authors_by_affiliation
(
rex
,
family_name_fr
)
assert
authors
.
split
(
', '
)
==
CPPM_AUTHORS
...
...
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