Commit 6f30b2f3 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update basis/test_08_CheckAndFix_base.

parent e0696b32
......@@ -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):
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment