summaryrefslogtreecommitdiffstats
path: root/python/tests/orcid.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-08-15 21:47:00 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-08-15 21:47:00 -0700
commit4c11f65f202ef8f71bfd640232ed30ccd6f4c3a4 (patch)
treecfa76395e59cbcf0c05f5eb79af2e2013f231080 /python/tests/orcid.py
parent18821fcbfa9eb38ee0fb0b065d6642b461fed021 (diff)
downloadfatcat-4c11f65f202ef8f71bfd640232ed30ccd6f4c3a4.tar.gz
fatcat-4c11f65f202ef8f71bfd640232ed30ccd6f4c3a4.zip
improve handling of invalid identifiers
Diffstat (limited to 'python/tests/orcid.py')
-rw-r--r--python/tests/orcid.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/tests/orcid.py b/python/tests/orcid.py
index 00748972..e07583ac 100644
--- a/python/tests/orcid.py
+++ b/python/tests/orcid.py
@@ -13,6 +13,10 @@ def test_orcid_importer_batch(orcid_importer):
with open('tests/files/0000-0001-8254-7103.json', 'r') as f:
orcid_importer.process_batch(f)
+def test_orcid_importer_badid(orcid_importer):
+ with open('tests/files/0000-0001-8254-710X.json', 'r') as f:
+ orcid_importer.process_batch(f)
+
def test_orcid_importer(orcid_importer):
with open('tests/files/0000-0001-8254-7103.json', 'r') as f:
orcid_importer.process_source(f)