summaryrefslogtreecommitdiffstats
path: root/python/tests/import_datacite.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-09-10 17:42:23 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-09-10 17:46:21 -0700
commitf6828024d81e3ba7923ed010ed4b87e91db6cde3 (patch)
tree6807d954ca45c3f69a7a24f44f2d02af90549d34 /python/tests/import_datacite.py
parent74ae11c45dae25ba6cf2546082d3cc3833379f10 (diff)
downloadfatcat-f6828024d81e3ba7923ed010ed4b87e91db6cde3.tar.gz
fatcat-f6828024d81e3ba7923ed010ed4b87e91db6cde3.zip
datacite: handle case of empty-string version
Includes a tiny tweak to the datacite import sample file to test this code path.
Diffstat (limited to 'python/tests/import_datacite.py')
-rw-r--r--python/tests/import_datacite.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/tests/import_datacite.py b/python/tests/import_datacite.py
index b94b6bc5..ba09ba74 100644
--- a/python/tests/import_datacite.py
+++ b/python/tests/import_datacite.py
@@ -385,6 +385,7 @@ def test_datacite_dict_parse(datacite_importer):
assert r.contribs[0].given_name == None
assert r.contribs[0].surname == None
assert len(r.refs) == 0
+ assert r.version == None
def test_datacite_conversions(datacite_importer):