Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

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

Update basis/test_10_CheckAndFix_article.

parent aa95850a
# -*- 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|" \
......
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