From 8d023e4dcdbb3c1c5d45dfc8751ec18c3d6e2828 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 7 May 2020 20:08:12 -0700 Subject: update ROMEO tests to join with policies and have ISSN-L mappings --- tests/files/ISSN-to-ISSN-L.txt | 17 +++++++++++++++++ tests/files/romeo-policies.csv | 26 ++++++++++++++++++++++++++ tests/test_directories.py | 3 +-- 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/tests/files/ISSN-to-ISSN-L.txt b/tests/files/ISSN-to-ISSN-L.txt index e64d1cb..9d79a2b 100644 --- a/tests/files/ISSN-to-ISSN-L.txt +++ b/tests/files/ISSN-to-ISSN-L.txt @@ -235,3 +235,20 @@ ISSN ISSN-L 0267-8179 0267-8179 1465-6906 1465-6906 2166-3831 2166-3831 +2297-8534 2297-8534 +0148-2076 0148-2076 +2190-572X 2190-572X +2092-6731 2092-6731 +0007-6899 0007-6899 +0890-6238 0890-6238 +1740-1526 1740-1526 +1077-8004 1077-8004 +1046-2821 1046-2821 +1027-4332 1027-4332 +0891-2432 0891-2432 +0887-3267 0887-3267 +2191-4052 2191-4052 +0002-7316 0002-7316 +0870-1164 0870-1164 +0962-2519 0962-2519 +1042-7147 1042-7147 diff --git a/tests/files/romeo-policies.csv b/tests/files/romeo-policies.csv index 6ceb379..7fa8808 100644 --- a/tests/files/romeo-policies.csv +++ b/tests/files/romeo-policies.csv @@ -28,3 +28,29 @@ 222,"Auckland University of Technology, School of Communication Studies, Pacific Media Centre",[Default policy],NZ,blue,can,FALSE,,can,FALSE,,cannot,FALSE,,,public,2010-02-11 2013,"Carleton University, Computational Geometry Laboratory",[Default policy],CA,green,can,FALSE,,can,FALSE,,can,FALSE,,All journals OA,public,2014-07-24 1390,"Ernst und Sohn",[Default policy],DE,yellow,cannot,FALSE,,restricted,FALSE,12,can,FALSE,,,public,2017-06-26 +22,"BMC (part of Springer Nature)",[Default policy],GB,green,can,FALSE,,can,FALSE,,can,FALSE,,All journals OA,public,2018-09-03 +22,"BMC (part of Springer Nature)",[Default policy],GB,green,can,FALSE,,can,FALSE,,can,FALSE,,All journals OA,public,2018-09-03 +31,"Emerald",[Default policy],GB,green,cannot,FALSE,,can,FALSE,,can,FALSE,,Paid OA options,public,2018-02-16 +63,"Royal Society of Chemistry",[Default policy],GB,yellow,cannot,FALSE,,restricted,FALSE,12,can,FALSE,,Paid OA options,public,2016-09-26 +65,"SAGE Publications (UK and US)",[Default policy],GB,green,cannot,FALSE,,can,FALSE,,can,FALSE,,Paid OA options,public,2013-03-11 +74,"Springer Verlag (Germany)",[Default policy],DE,green,cannot,FALSE,,can,FALSE,,can,FALSE,,Paid OA options,public,2014-05-16 +107,"University of California Press",[Default policy],US,green,can,FALSE,,can,FALSE,,can,FALSE,,,public,2018-12-11 +164,"Thomson Reuters (Professional)",[Default policy],AU,blue,unknown,FALSE,,can,FALSE,,cannot,FALSE,,,public,2013-03-18 +322,"CODESRIA",[Default policy],SN,blue,can,FALSE,,can,FALSE,,restricted,TRUE,,,public,2011-08-12 +632,"American Bar Association",[Default policy],US,white,unknown,FALSE,,cannot,FALSE,,cannot,FALSE,,,public,2011-08-12 +1084,"Peter Lang International Academic Publishers",[Default policy],CH,yellow,restricted,FALSE,12,restricted,FALSE,12,can,FALSE,,Paid OA options,public,2018-03-13 +904,"Universidade do Porto, Faculdade de Letras",[Default policy],PT,green,can,FALSE,,can,FALSE,,can,FALSE,,,public,2011-03-01 +1132,"Ubiquity Press",[Default policy],GB,green,can,FALSE,,can,FALSE,,can,FALSE,,All journals OA,public,2015-07-20 +1139,"Taylor & Francis (Routledge)","STM, Behavioural Science and Public Health Titles",GB,green,cannot,FALSE,,can,FALSE,,can,FALSE,,Paid OA options,public,2014-03-26 +1155,"Laboratório Nacional de Energia e Geologia (LNEG)","Corrosão e Protecção de Materiais",PT,white,restricted,FALSE,6,cannot,FALSE,,cannot,FALSE,,,public,2011-12-13 +1345,"Universidade Federal do Espírito Santo",[Default policy],BR,blue,can,FALSE,,can,FALSE,,cannot,FALSE,,,public,2012-09-14 +1471,"IOP Publishing","Hybrid Open Access",GB,green,cannot,FALSE,,can,FALSE,,can,FALSE,,Paid OA options,public,2017-11-22 +1476,"Oxford University Press (OUP)","Policy B - Oxford Open Option D",GB,green,cannot,FALSE,,can,FALSE,,can,FALSE,,Paid OA options,public,2017-05-30 +1939,"1066 Tidsskrift for historie",[Default policy],DK,white,cannot,FALSE,,cannot,FALSE,,cannot,FALSE,,,public,2014-05-29 +2050,"Wiley","12 months",US,yellow,cannot,FALSE,,restricted,FALSE,12,can,FALSE,,Paid OA options,public,2017-11-24 +2425,"České vysoké učení technické v Praze (Czech Technical University in Prague)",[Default policy],CZ,green,can,FALSE,,can,FALSE,,can,FALSE,,All journals OA,public,2015-07-27 +2657,"Open Library of Humanities",[Default policy],AA,green,can,FALSE,,can,FALSE,,can,FALSE,,All journals OA,public,2015-09-09 +2823,"Elsevier","12 months",US,green,cannot,FALSE,,can,FALSE,,can,FALSE,,Paid OA options,public,2016-07-01 +3002,"Cambridge University Press (CUP)","PDF Allowed No Embargo",GB,green,can,FALSE,,can,FALSE,,can,FALSE,,Paid OA options,public,2017-03-21 +3272,"Nature Research (part of Springer Nature)","Review Journals",GB,white,cannot,FALSE,,restricted,FALSE,6,cannot,FALSE,,,public,2018-11-09 +3284,"SpringerOpen (part of Springer Nature)",[Default policy],GB,green,can,FALSE,,can,FALSE,,can,FALSE,,All journals OA,public,2018-09-07 diff --git a/tests/test_directories.py b/tests/test_directories.py index 051059b..37c6109 100644 --- a/tests/test_directories.py +++ b/tests/test_directories.py @@ -21,8 +21,7 @@ def test_all(config, database): for cls in (CrossrefLoader, DoajLoader, EntrezLoader, EzbLoader, GoldOALoader, NorwegianLoader, OpenAPCLoader, RoadLoader, - SzczepanskiLoader, WikidataLoader): - # XXX: SherpaRomeoLoader + SherpaRomeoLoader, SzczepanskiLoader, WikidataLoader): loader = cls(config) counts = loader.index_file(database) assert counts['total'] >= 20 -- cgit v1.2.3