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
096b1277
Commit
096b1277
authored
Jan 07, 2021
by
LE GAC Renaud
Browse files
Update test_06_RecordConf to only check cds records
parent
e5772dd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
62 deletions
+20
-62
tests/basis/test_06_RecordConf.py
tests/basis/test_06_RecordConf.py
+20
-62
No files found.
tests/basis/test_06_RecordConf.py
View file @
096b1277
...
...
@@ -3,7 +3,7 @@
Test specific methods of the RecordConf class for ::
https://cds.cern.ch/record/1411352.
(same as https://inspirehep.net/
record
/1089237)
(same as https://inspirehep.net/
api/literature
/1089237)
Prospects for CP violation in B0s --> J/psiphi from first LHCb data
O. Leroy, Symposium on Prospects in the Physics of Discrete Symmetries,
...
...
@@ -25,84 +25,42 @@ from store_tools import load_record
@
pytest
.
fixture
(
scope
=
"module"
)
def
rec
cds
():
def
rec
ord
():
return
load_record
(
"cds.cern.ch"
,
1411352
)
@
pytest
.
fixture
(
scope
=
"module"
)
def
recins
():
return
load_record
(
"inspirehep.net"
,
1089237
,
shelf
=
"literature"
)
def
test_conference_location_cds_06001
(
reccds
):
assert
reccds
.
conference_location
()
==
"Rome, Italy"
def
test_conference_location_ins_06002
(
recins
):
assert
recins
.
conference_location
()
==
"Rome, Italy"
def
test_conference_country_cds_06003
(
reccds
):
assert
reccds
.
conference_country
()
==
"Italy"
def
test_conference_country_ins_06004
(
recins
):
assert
recins
.
conference_country
()
==
"Italy"
def
test_conference_dates_cds_06005
(
reccds
):
assert
reccds
.
conference_dates
()
==
"6 - 11 Dec 2010"
def
test_conference_location_cds_06001
(
record
):
assert
record
.
conference_location
()
==
"Rome, Italy"
def
test_conference_
dates_in
s_0600
6
(
rec
ins
):
assert
rec
ins
.
conference_
dates
()
==
"6-11 Dec 2010
"
def
test_conference_
country_cd
s_0600
3
(
rec
ord
):
assert
rec
ord
.
conference_
country
()
==
"Italy
"
def
test_conference_
i
d_cds_0600
7
(
rec
cds
):
assert
rec
cds
.
conference_
i
d
()
==
1181092
def
test_conference_d
ates
_cds_0600
5
(
rec
ord
):
assert
rec
ord
.
conference_d
ates
()
==
"6 - 11 Dec 2010"
def
test_conference_id_
in
s_0600
8
(
rec
ins
):
assert
rec
ins
.
conference_id
()
==
980401
def
test_conference_id_
cd
s_0600
7
(
rec
ord
):
assert
rec
ord
.
conference_id
()
==
1181092
def
test_conference_key_cds_06009
(
rec
cds
):
assert
rec
cds
.
conference_key
()
==
"rome20101206"
def
test_conference_key_cds_06009
(
rec
ord
):
assert
rec
ord
.
conference_key
()
==
"rome20101206"
def
test_conference_key_ins_06010
(
recins
):
assert
recins
.
conference_key
()
==
"C10-12-06"
def
test_conference_title_cds_06011
(
reccds
):
assert
reccds
.
conference_title
()
==
\
def
test_conference_title_cds_06011
(
record
):
assert
record
.
conference_title
()
==
\
"Symposium on Prospects in the Physics of Discrete Symmetries"
def
test_conference_title_ins_06012
(
recins
):
assert
recins
.
conference_title
()
==
\
"2nd Symposium on Prospects in the Physics of Discrete Symmetries"
def
test_conference_town_cds_06013
(
reccds
):
assert
reccds
.
conference_town
()
==
"Rome"
def
test_conference_town_ins_06014
(
recins
):
assert
recins
.
conference_town
()
==
"Rome"
def
test_conference_url_cds_06015
(
reccds
):
assert
reccds
.
conference_url
()
==
"http://www.roma1.infn.it/discrete10"
def
test_conference_url_ins_06016
(
recins
):
assert
recins
.
conference_url
()
==
"http://www.roma1.infn.it/discrete10"
def
test_conference_town_cds_06013
(
record
):
assert
record
.
conference_town
()
==
"Rome"
def
test_conference_
year
_cds_0601
7
(
rec
cds
):
assert
rec
cds
.
conference_
year
()
==
"
20
10"
def
test_conference_
url
_cds_0601
5
(
rec
ord
):
assert
rec
ord
.
conference_
url
()
==
"
http://www.roma1.infn.it/discrete
10"
def
test_conference_year_
in
s_0601
8
(
rec
ins
):
assert
rec
ins
.
conference_year
()
==
"2010"
def
test_conference_year_
cd
s_0601
7
(
rec
ord
):
assert
rec
ord
.
conference_year
()
==
"2010"
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