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
652ca92c
Commit
652ca92c
authored
Jan 07, 2021
by
LE GAC Renaud
Browse files
Update test_04_RecordPubli to remove test related to inspirehep.net
parent
d749d054
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
53 deletions
+1
-53
tests/basis/test_04_RecordPubli.py
tests/basis/test_04_RecordPubli.py
+1
-53
No files found.
tests/basis/test_04_RecordPubli.py
View file @
652ca92c
...
...
@@ -3,8 +3,6 @@
Test all methods of the RecordPubli class for a given article:
https://cds.cern.ch/record/1951625.
(same as https://inspirehep.net/record/1319638)
Precision luminosity measurements at LHCb,
J. Instrum. 9 (2014) P12005
...
...
@@ -33,11 +31,6 @@ def reccds():
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
):
"""test the method _process_authors and _process_publication_info.
...
...
@@ -184,13 +177,6 @@ def test_paper_info_cds_04016(reccds):
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
):
assert
reccds
.
paper_reference
()
==
"JINST 9 2014 P12005"
...
...
@@ -199,63 +185,25 @@ def test_preprint_number_cds_04019(reccds):
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
):
assert
reccds
.
paper_url
()
==
\
"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
):
assert
reccds
.
report_number
()
==
\
"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
):
assert
reccds
.
submitted
()
==
"01 Oct 2014"
def
test_submitted_ins_04026
(
recins
):
assert
recins
.
submitted
()
==
"2014-10-01"
def
test_title_cds_04027
(
reccds
):
assert
reccds
.
title
()
==
"Precision luminosity measurements at LHCb"
def
test_all_ins_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
():
def
test_all_cds_042028
():
"""same article oai:inspirehet.net:1762838 and oai:cds.cern.ch:2698323"""
rec
=
load_record
(
"cds.cern.ch"
,
2698323
)
...
...
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