Commit fcb677a2 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update basis/test_02_record_factory.py

parent 29066b3d
......@@ -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():
......
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