aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2019-12-26 23:52:40 +0100
committerMartin Czygan <martin.czygan@gmail.com>2019-12-28 23:07:32 +0100
commit9a2a7e35948e350aaf40b07d4d4427d288970d3f (patch)
treebfd1aff15c8341922b561832abe9173af7a512d5
parentd0fea0bb56c80caa1bb32a725d1ed4424df5ac39 (diff)
downloadfatcat-9a2a7e35948e350aaf40b07d4d4427d288970d3f.tar.gz
fatcat-9a2a7e35948e350aaf40b07d4d4427d288970d3f.zip
datacite: adjust tests
-rw-r--r--python/tests/import_datacite.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/python/tests/import_datacite.py b/python/tests/import_datacite.py
index ab67a310..bc47a185 100644
--- a/python/tests/import_datacite.py
+++ b/python/tests/import_datacite.py
@@ -252,7 +252,7 @@ def test_datacite_dict_parse(datacite_importer):
assert r.original_title == None
assert r.ext_ids.doi == "10.18730/8dym9"
assert r.ext_ids.isbn13 == None
- assert r.language == "enc"
+ assert r.language == "en"
assert r.subtitle == None
assert r.release_date == None
assert r.release_year == 1986
@@ -262,7 +262,6 @@ def test_datacite_dict_parse(datacite_importer):
assert 'funder' not in r.extra['datacite']
# matched by ISSN, so shouldn't be in there
#assert extra['container_name'] == "International Journal of Quantum Chemistry"
- assert r.extra['datacite']['url'] == 'https://ssl.fao.org/glis/doi/10.18730/8DYM9'
assert r.extra['datacite']['subjects'] == [{'subject': 'Plant Genetic Resource for Food and Agriculture'}]
assert len(r.abstracts) == 1
assert len(r.abstracts[0].content) == 421