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
fcb677a2
Commit
fcb677a2
authored
Jan 07, 2021
by
LE GAC Renaud
Browse files
Update basis/test_02_record_factory.py
parent
29066b3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
tests/basis/test_02_record_factory.py
tests/basis/test_02_record_factory.py
+2
-12
No files found.
tests/basis/test_02_record_factory.py
View file @
fcb677a2
...
...
@@ -9,8 +9,7 @@ from store_tools.base import (is_conference,
is_institute
,
is_thesis
)
from
store_tools.factory
import
(
add_affiliation_keys
,
add_conference_data
,
from
store_tools.factory
import
(
add_conference_data
,
build_record
,
build_store
,
get_conference_data
)
...
...
@@ -166,21 +165,12 @@ def test_talk_cds_02008():
record
=
build_record
(
recjson
)
assert
isinstance
(
record
,
RecordConf
)
# ............................................................................
#
# Institute
#
def
test_add_affiliation_keys_ins_02009
():
"""CPPM"""
store
=
build_store
(
"inspirehep.net"
,
shelf
=
"institutions"
)
recjson
=
store
.
get_record
(
902989
)
add_affiliation_keys
(
recjson
)
assert
"corporate_note"
in
recjson
assert
recjson
[
"corporate_note"
][
"identifier"
]
==
"Marseille, CPPM"
assert
recjson
[
"corporate_note"
][
"future_identifier"
]
==
"CPPM, Marseille"
# v1.4.0: remove 02009 testing obsolete add_affiliation_keys
def
test_institute_ins_02010
():
...
...
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