From 9a2a7e35948e350aaf40b07d4d4427d288970d3f Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Thu, 26 Dec 2019 23:52:40 +0100 Subject: datacite: adjust tests --- python/tests/import_datacite.py | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3