Commit 652ca92c authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update test_04_RecordPubli to remove test related to inspirehep.net

parent d749d054
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
Test all methods of the RecordPubli class for a given article: Test all methods of the RecordPubli class for a given article:
https://cds.cern.ch/record/1951625. https://cds.cern.ch/record/1951625.
(same as https://inspirehep.net/record/1319638)
Precision luminosity measurements at LHCb, Precision luminosity measurements at LHCb,
J. Instrum. 9 (2014) P12005 J. Instrum. 9 (2014) P12005
...@@ -33,11 +31,6 @@ def reccds(): ...@@ -33,11 +31,6 @@ def reccds():
return load_record("cds.cern.ch", 1951625) return load_record("cds.cern.ch", 1951625)
@pytest.fixture(scope="module")
def recins():
return load_record("inspirehep.net", 1319638, shelf="literature")
def test_constructor_cds_04001(reccds): def test_constructor_cds_04001(reccds):
"""test the method _process_authors and _process_publication_info. """test the method _process_authors and _process_publication_info.
...@@ -184,13 +177,6 @@ def test_paper_info_cds_04016(reccds): ...@@ -184,13 +177,6 @@ def test_paper_info_cds_04016(reccds):
assert reccds.paper_year() == "2014" assert reccds.paper_year() == "2014"
def test_paper_info_ins_04017(recins):
assert recins.paper_editor() == "JINST"
assert recins.paper_pages() == "P12005"
assert recins.paper_volume() == "9"
assert recins.paper_year() == "2014"
def test_paper_reference_cds_04018(reccds): def test_paper_reference_cds_04018(reccds):
assert reccds.paper_reference() == "JINST 9 2014 P12005" assert reccds.paper_reference() == "JINST 9 2014 P12005"
...@@ -199,63 +185,25 @@ def test_preprint_number_cds_04019(reccds): ...@@ -199,63 +185,25 @@ def test_preprint_number_cds_04019(reccds):
assert reccds.preprint_number() == "arXiv:1410.0149" assert reccds.preprint_number() == "arXiv:1410.0149"
def test_preprint_number_ins_04020(recins):
assert recins.preprint_number() == "arXiv:1410.0149"
def test_paper_url_cds_04021(reccds): def test_paper_url_cds_04021(reccds):
assert reccds.paper_url() == \ assert reccds.paper_url() == \
"http://cds.cern.ch/record/1951625/files/arXiv:1410.0149.pdf" "http://cds.cern.ch/record/1951625/files/arXiv:1410.0149.pdf"
def test_paper_url_ins_04022(recins):
assert recins.paper_url() == \
"http://old.inspirehep.net/record/1319638/files/arXiv:1410.0149.pdf"
def test_report_number_cds_04023(reccds): def test_report_number_cds_04023(reccds):
assert reccds.report_number() == \ assert reccds.report_number() == \
"CERN-PH-EP-2014-221, LHCB-PAPER-2014-047, LHCB-PAPER-2014-047-003" "CERN-PH-EP-2014-221, LHCB-PAPER-2014-047, LHCB-PAPER-2014-047-003"
def test_report_number_ins_04024(recins):
assert recins.report_number() == "CERN-PH-EP-2014-221, LHCB-PAPER-2014-047"
def test_submitted_cds_04025(reccds): def test_submitted_cds_04025(reccds):
assert reccds.submitted() == "01 Oct 2014" assert reccds.submitted() == "01 Oct 2014"
def test_submitted_ins_04026(recins):
assert recins.submitted() == "2014-10-01"
def test_title_cds_04027(reccds): def test_title_cds_04027(reccds):
assert reccds.title() == "Precision luminosity measurements at LHCb" assert reccds.title() == "Precision luminosity measurements at LHCb"
def test_all_ins_042028(): def test_all_cds_042028():
"""same article oai:inspirehet.net:1762838 and oai:cds.cern.ch:2698323"""
rec = load_record("inspirehep.net", 1762838)
assert rec.title() == \
r"Updated measurement of decay-time-dependent CP asymmetries " \
r"in $D^0 \to K^+K^-$ and $D^0 \to \pi^+\pi^-$ decays"
assert rec.paper_reference() == "Phys.Rev. D101 2020 012005"
assert rec.first_author() == "Aaij, Roel"
assert rec.primary_oai() == "oai:inspirehep.net:1762838"
assert rec.secondary_oai() == "oai:cds.cern.ch:2698323"
assert rec.paper_url() == \
"http://old.inspirehep.net/record/1762838/files/1911.01114.pdf"
assert rec.preprint_number() == "arXiv:1911.01114"
assert rec.report_number() == "CERN-EP-2019-225, LHCb-PAPER-2019-032"
def test_all_ins_042029():
"""same article oai:inspirehet.net:1762838 and oai:cds.cern.ch:2698323""" """same article oai:inspirehet.net:1762838 and oai:cds.cern.ch:2698323"""
rec = load_record("cds.cern.ch", 2698323) rec = load_record("cds.cern.ch", 2698323)
......
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