aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/orcid.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-10 18:06:12 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-10 18:06:23 -0700
commit5ec28e7657af82c3260fcf67db4e7b2ea4ba6a36 (patch)
tree6015f65d5d35a10144716e37217cc1f26164d744 /python/tests/orcid.py
parent5aa20868e508de021dc6112e4fe0a58ad5d7dc0a (diff)
downloadfatcat-5ec28e7657af82c3260fcf67db4e7b2ea4ba6a36.tar.gz
fatcat-5ec28e7657af82c3260fcf67db4e7b2ea4ba6a36.zip
fix python import of ORCIDs ending 'X'
Diffstat (limited to 'python/tests/orcid.py')
-rw-r--r--python/tests/orcid.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/tests/orcid.py b/python/tests/orcid.py
index e07583ac..ae3d0d0b 100644
--- a/python/tests/orcid.py
+++ b/python/tests/orcid.py
@@ -21,6 +21,12 @@ def test_orcid_importer(orcid_importer):
with open('tests/files/0000-0001-8254-7103.json', 'r') as f:
orcid_importer.process_source(f)
+def test_orcid_importer_x(orcid_importer):
+ with open('tests/files/0000-0003-3953-765X.json', 'r') as f:
+ orcid_importer.process_source(f)
+ c = orcid_importer.api.lookup_creator(orcid="0000-0003-3953-765X")
+ assert c is not None
+
def test_orcid_dict_parse(orcid_importer):
with open('tests/files/0000-0001-8254-7103.json', 'r') as f:
raw = json.loads(f.readline())