From 7a25d96ea3b57170d1c13b2633eed99b536ee78d Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 22 May 2019 10:13:04 -0700 Subject: arxiv license slug shorter; fix test --- python/fatcat_tools/importers/crossref.py | 2 +- python/tests/import_arxiv.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/fatcat_tools/importers/crossref.py b/python/fatcat_tools/importers/crossref.py index 162bff6c..f2e230d1 100644 --- a/python/fatcat_tools/importers/crossref.py +++ b/python/fatcat_tools/importers/crossref.py @@ -73,7 +73,7 @@ LICENSE_SLUG_MAP = { # //www.acm.org/publications/policies/copyright_policy#Background is closed # //rsc.li/journals-terms-of-use is closed for vor (am open) # //www.ieee.org/publications_standards/publications/rights/ieeecopyrightform.pdf is 404 (!) - "//arxiv.org/licenses/nonexclusive-distrib/1.0/": "ARXIV-NED-1.0", # XXX + "//arxiv.org/licenses/nonexclusive-distrib/1.0/": "ARXIV-1.0", } def lookup_license_slug(raw): diff --git a/python/tests/import_arxiv.py b/python/tests/import_arxiv.py index bc4fca02..bbad8fa6 100644 --- a/python/tests/import_arxiv.py +++ b/python/tests/import_arxiv.py @@ -54,8 +54,8 @@ def test_arxiv_xml_parse(arxiv_importer): assert r1.original_title == None assert r1.release_type == "article" assert r1.release_stage == "submitted" - assert r2.release_stage == "published" - assert r1.license_slug == "ARXIV-NED-1.0" + assert r2.release_stage == "accepted" + assert r1.license_slug == "ARXIV-1.0" assert r1.version == "v1" assert r2.version == "v2" assert r1.ext_ids.arxiv == "1810.09584v1" -- cgit v1.2.3