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
6e0ce639
Commit
6e0ce639
authored
Jan 28, 2020
by
LE GAC Renaud
Browse files
Update basis/test_10_CheckAndFix_article.
parent
aa95850a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
tests/basis/test_10_CheckAndFix_article.py
tests/basis/test_10_CheckAndFix_article.py
+14
-10
No files found.
tests/basis/test_10_CheckAndFix_article.py
View file @
6e0ce639
# -*- coding: utf-8 -*-
"""test_10_CheckAndFix_article
* Test CheckAndFix methods for article:
...
...
@@ -34,7 +33,7 @@ def svc():
return
CheckAndFix
()
def
test_format_editor
(
svc
,
reccds
,
recins
):
def
test_format_editor
_cds_10001
(
svc
,
reccds
):
# cds
assert
reccds
.
paper_editor
()
==
"Phys. Rev. D"
...
...
@@ -45,6 +44,8 @@ def test_format_editor(svc, reccds, recins):
assert
reccds
.
paper_editor
()
==
"Phys. Rev. D"
assert
reccds
.
paper_volume
()
==
"95"
def
test_format_editor_ins_10002
(
svc
,
recins
):
# inspire
assert
recins
.
paper_editor
()
==
"Phys.Rev."
assert
recins
.
paper_volume
()
==
"D95"
...
...
@@ -55,11 +56,11 @@ def test_format_editor(svc, reccds, recins):
assert
recins
.
paper_volume
()
==
"95"
def
test_publisher
(
svc
,
reccds
):
def
test_publisher
_cds_10003
(
svc
,
reccds
):
assert
svc
.
publisher
(
reccds
)
is
None
def
test_paper_reference
(
svc
,
reccds
):
def
test_paper_reference
_cds_10004
(
svc
,
reccds
):
# check recovery procedure using DOI
# remove the publisher and volume information
...
...
@@ -71,9 +72,7 @@ def test_paper_reference(svc, reccds):
assert
reccds
.
paper_reference
()
==
paper_ref
def
test_submitted
(
svc
,
reccds
,
recins
):
assert
recins
.
submitted
()
==
"2017-01-19"
def
test_submitted_cds_10005
(
svc
,
reccds
):
assert
reccds
.
submitted
()
==
"19 Jan 2017"
svc
.
submitted
(
reccds
)
...
...
@@ -90,7 +89,12 @@ def test_submitted(svc, reccds, recins):
assert
reccds
.
submitted
()
==
"2017-01"
def
test_format_authors
(
svc
,
reccds
):
def
test_submitted_ins_10006
(
svc
,
recins
):
assert
recins
.
submitted
()
==
"2017-01-19"
def
test_format_authors_cds_10007
(
svc
,
reccds
):
authors
=
reccds
.
authors_as_list
()
...
...
@@ -109,12 +113,12 @@ def test_format_authors(svc, reccds):
assert
authors
[
-
1
]
==
u
"S. Zucchelli"
def
test_get_my_authors
(
svc
,
reccds
):
def
test_get_my_authors
_cds_10008
(
svc
,
reccds
):
svc
.
format_authors
(
reccds
,
fmt
=
"F. Last"
)
assert
svc
.
get_my_authors
(
reccds
,
sep
=
u
"|"
,
sort
=
True
)
is
None
my_authors
=
reccds
.
my_authors
.
encode
(
"utf-8"
)
my_authors
=
reccds
.
my_authors
assert
my_authors
==
"J. Arnau Romeu|E. Aslanides|J. Cogan|"
\
"K. De Bruyn|R. Le Gac|O. Leroy|"
\
...
...
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