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
6f30b2f3
Commit
6f30b2f3
authored
Jan 27, 2020
by
LE GAC Renaud
Browse files
Update basis/test_08_CheckAndFix_base.
parent
e0696b32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
tests/basis/test_08_CheckAndFix_base.py
tests/basis/test_08_CheckAndFix_base.py
+12
-12
No files found.
tests/basis/test_08_CheckAndFix_base.py
View file @
6f30b2f3
...
...
@@ -29,22 +29,22 @@ def svc():
return
CheckAndFix
()
def
test_constructor
(
svc
):
def
test_constructor
_08001
(
svc
):
assert
svc
.
reg_institute
==
\
"^
Marseille, CPPM|"
\
"^
CPPM, Marseille|"
\
"^
Centre de Physique des Particules de Marseille \(CPPM\)"
r
"(^|\|)
Marseille, CPPM
($|\|)
|"
\
r
"(^|\|)
CPPM, Marseille
($|\|)
|"
\
r
"(^|\|)
Centre de Physique des Particules de Marseille \(CPPM\)
($|\|)
"
def
test_is_oai
(
svc
,
reccds
):
def
test_is_oai
_cds_08002
(
svc
,
reccds
):
assert
svc
.
is_oai
(
reccds
)
def
test_is_bad_oai
(
svc
,
reccds
):
def
test_is_bad_oai
_cds_08003
(
svc
,
reccds
):
assert
not
svc
.
is_bad_oai_used
(
reccds
)
def
test_temporary_record
(
svc
,
reccds
):
def
test_temporary_record
_cds_08004
(
svc
,
reccds
):
assert
svc
.
temporary_record
(
reccds
)
is
None
...
...
@@ -62,11 +62,11 @@ def test_temporary_record(svc, reccds):
svc
.
temporary_record
(
recins
)
def
test_authors
(
svc
,
reccds
):
def
test_authors
_cds_08005
(
svc
,
reccds
):
assert
svc
.
authors
(
reccds
)
is
None
def
test__get_author_rescue_list
(
svc
,
reccds
):
def
test__get_author_rescue_list
_cds_08006
(
svc
,
reccds
):
assert
svc
.
_get_author_rescue_list
(
reccds
,
8
,
7
)
==
[
"C. Adrover"
,
"S. Akar"
,
"E. Aslanides"
,
...
...
@@ -84,7 +84,7 @@ def test__get_author_rescue_list(svc, reccds):
"A. Tsaregorodtsev"
]
def
test_my_affiliation
(
svc
,
reccds
):
def
test_my_affiliation
_cds_08007
(
svc
,
reccds
):
assert
svc
.
my_affiliation
(
reccds
,
8
,
7
)
==
"Marseille, CPPM"
# a paper from NA62 -- no CPPM author
...
...
@@ -93,7 +93,7 @@ def test_my_affiliation(svc, reccds):
svc
.
my_affiliation
(
recna62
,
id_project
=
8
,
id_team
=
7
)
def
test_search_synonym
():
def
test_search_synonym
_08008
():
db
=
current
.
db
# collaboration ANTARES, TANAMI (defined as synonym in the db)
...
...
@@ -117,5 +117,5 @@ def test_search_synonym():
assert
colid
==
2
def
test_collaboration
(
svc
,
reccds
):
def
test_collaboration
_cds_08009
(
svc
,
reccds
):
assert
svc
.
collaboration
(
reccds
)
is
None
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