diff --git a/setup.py b/setup.py index a98aeb88..4d1518a8 100644 --- a/setup.py +++ b/setup.py @@ -17,8 +17,8 @@ install_requires = [ 'autosemver~=0.2', - 'inspire-schemas~=42.0', - 'inspire-dojson~=41.0', + 'inspire-schemas~=46.0', + 'inspire-dojson~=46.0', 'Scrapy>=1.1.0', # TODO: unpin once they support wheel building again 'scrapyd==1.1.0', diff --git a/tests/functional/desy/fixtures/desy_ftp_records.json b/tests/functional/desy/fixtures/desy_ftp_records.json index 8f7302c4..8e9895d8 100644 --- a/tests/functional/desy/fixtures/desy_ftp_records.json +++ b/tests/functional/desy/fixtures/desy_ftp_records.json @@ -5,9 +5,6 @@ "submission_number": "5652c7f6190f11e79e8000224dabeaad", "datetime": "2017-04-03T10:26:40.365216" }, - "_collections": [ - "Literature" - ], "_fft": [ { "version": 1, @@ -43,12 +40,6 @@ "title": "Towards a Fully Integrated Accelerator on a Chip: Dielectric Laser\n Acceleration (DLA) From the Source to Relativistic Electrons\n " } ], - "urls": [ - { - "description": "Fulltext", - "value": "http://inspirehep.net/record/1608652/files/Towards a fully\n integrated acc on a chip.pdf\n " - } - ], "dois": [ { "value": "10.18429/JACoW-IPAC2017-WEYB1" @@ -82,9 +73,6 @@ "submission_number": "5652c7f6190f11e79e8000224dabeaad", "datetime": "2017-04-03T10:26:40.365216" }, - "_collections": [ - "Literature" - ], "_fft": [ { "version": 1, @@ -120,12 +108,6 @@ "title": "Towards a Fully Integrated Accelerator on a Chip: Dielectric Laser\n Acceleration (DLA) From the Source to Relativistic Electrons\n " } ], - "urls": [ - { - "description": "Fulltext", - "value": "http://inspirehep.net/record/1608652/files/Towards a fully\n integrated acc on a chip.pdf\n " - } - ], "dois": [ { "value": "10.18429/JACoW-IPAC2017-WEYB1" @@ -159,9 +141,6 @@ "submission_number": "5652c7f6190f11e79e8000224dabeaad", "datetime": "2017-04-03T10:26:40.365216" }, - "_collections": [ - "Literature" - ], "_fft": [ { "version": 1, @@ -197,12 +176,6 @@ "title": "Towards a Fully Integrated Accelerator on a Chip: Dielectric Laser\n Acceleration (DLA) From the Source to Relativistic Electrons\n " } ], - "urls": [ - { - "description": "Fulltext", - "value": "http://inspirehep.net/record/1608652/files/Towards a fully\n integrated acc on a chip.pdf\n " - } - ], "dois": [ { "value": "10.18429/JACoW-IPAC2017-WEYB1" @@ -236,9 +209,6 @@ "submission_number": "5652c7f6190f11e79e8000224dabeaad", "datetime": "2017-04-03T10:26:40.365216" }, - "_collections": [ - "Literature" - ], "_fft": [ { "version": 1, @@ -274,12 +244,6 @@ "title": "Towards a Fully Integrated Accelerator on a Chip: Dielectric Laser\n Acceleration (DLA) From the Source to Relativistic Electrons\n " } ], - "urls": [ - { - "description": "Fulltext", - "value": "http://inspirehep.net/record/1608652/files/Towards a fully\n integrated acc on a chip.pdf\n " - } - ], "dois": [ { "value": "10.18429/JACoW-IPAC2017-WEYB1" diff --git a/tests/functional/desy/fixtures/desy_local_records.json b/tests/functional/desy/fixtures/desy_local_records.json index 02f8fad2..7dc95014 100644 --- a/tests/functional/desy/fixtures/desy_local_records.json +++ b/tests/functional/desy/fixtures/desy_local_records.json @@ -5,9 +5,6 @@ "submission_number": "5652c7f6190f11e79e8000224dabeaad", "datetime": "2017-04-03T10:26:40.365216" }, - "_collections": [ - "Literature" - ], "_fft": [ { "version": 1, @@ -43,12 +40,6 @@ "title": "Towards a Fully Integrated Accelerator on a Chip: Dielectric Laser\n Acceleration (DLA) From the Source to Relativistic Electrons\n " } ], - "urls": [ - { - "description": "Fulltext", - "value": "http://inspirehep.net/record/1608652/files/Towards a fully\n integrated acc on a chip.pdf\n " - } - ], "dois": [ { "value": "10.18429/JACoW-IPAC2017-WEYB1" @@ -82,9 +73,6 @@ "submission_number": "5652c7f6190f11e79e8000224dabeaad", "datetime": "2017-04-03T10:26:40.365216" }, - "_collections": [ - "Literature" - ], "_fft": [ { "version": 1, @@ -120,12 +108,6 @@ "title": "Towards a Fully Integrated Accelerator on a Chip: Dielectric Laser\n Acceleration (DLA) From the Source to Relativistic Electrons\n " } ], - "urls": [ - { - "description": "Fulltext", - "value": "http://inspirehep.net/record/1608652/files/Towards a fully\n integrated acc on a chip.pdf\n " - } - ], "dois": [ { "value": "10.18429/JACoW-IPAC2017-WEYB1" @@ -159,9 +141,6 @@ "submission_number": "5652c7f6190f11e79e8000224dabeaad", "datetime": "2017-04-03T10:26:40.365216" }, - "_collections": [ - "Literature" - ], "_fft": [ { "version": 1, @@ -197,12 +176,6 @@ "title": "Towards a Fully Integrated Accelerator on a Chip: Dielectric Laser\n Acceleration (DLA) From the Source to Relativistic Electrons\n " } ], - "urls": [ - { - "description": "Fulltext", - "value": "http://inspirehep.net/record/1608652/files/Towards a fully\n integrated acc on a chip.pdf\n " - } - ], "dois": [ { "value": "10.18429/JACoW-IPAC2017-WEYB1" @@ -236,9 +209,6 @@ "submission_number": "5652c7f6190f11e79e8000224dabeaad", "datetime": "2017-04-03T10:26:40.365216" }, - "_collections": [ - "Literature" - ], "_fft": [ { "version": 1, @@ -274,12 +244,6 @@ "title": "Towards a Fully Integrated Accelerator on a Chip: Dielectric Laser\n Acceleration (DLA) From the Source to Relativistic Electrons\n " } ], - "urls": [ - { - "description": "Fulltext", - "value": "http://inspirehep.net/record/1608652/files/Towards a fully\n integrated acc on a chip.pdf\n " - } - ], "dois": [ { "value": "10.18429/JACoW-IPAC2017-WEYB1" diff --git a/tests/unit/test_desy.py b/tests/unit/test_desy.py index 2b567191..60a13a10 100644 --- a/tests/unit/test_desy.py +++ b/tests/unit/test_desy.py @@ -88,9 +88,6 @@ def override_generated_fields(record): def test_pipeline_record(generated_record): expected = { '$schema': 'hep.json', - '_collections': [ - 'Literature' - ], '_fft': [ { 'creation_datetime': '2017-06-27T09:43:17', @@ -196,16 +193,6 @@ def test_pipeline_record(generated_record): 'From the Source to Relativistic Electrons\n ' ) } - ], - 'urls': [ - { - 'description': 'Fulltext', - 'value': ( - 'http://inspirehep.net/record/1608652/files/Towards ' - 'a fully\n integrated acc on a chip.pdf' - '\n ' - ) - } ] } @@ -229,9 +216,6 @@ def test_pipeline_collection_records(generated_records): "submission_number": "5652c7f6190f11e79e8000224dabeaad", "datetime": "2017-05-04T17:49:07.975168" }, - "_collections": [ - "Literature" - ], "_fft": [ { 'creation_datetime': '2017-06-27T09:43:17', @@ -293,16 +277,6 @@ def test_pipeline_collection_records(generated_records): ) } ], - "urls": [ - { - "description": "Fulltext", - "value": ( - 'http://inspirehep.net/record/1608652/files/' - 'Towards a fully\n integrated acc on a ' - 'chip.pdf\n ' - ) - } - ], "dois": [ { "value": "10.18429/JACoW-IPAC2017-WEYB1" @@ -354,9 +328,6 @@ def test_pipeline_collection_records(generated_records): "submission_number": "5652c7f6190f11e79e8000224dabeaad", "datetime": "2017-05-04T17:49:07.975168" }, - "_collections": [ - "Literature" - ], "_fft": [ { 'creation_datetime': '2017-06-27T09:43:17', @@ -418,16 +389,6 @@ def test_pipeline_collection_records(generated_records): ) } ], - "urls": [ - { - "description": "Fulltext", - "value": ( - "http://inspirehep.net/record/1608652/files/" - "Towards a fully\n integrated acc on a " - "chip.pdf\n " - ) - } - ], "dois": [ { "value": "10.18429/JACoW-IPAC2017-WEYB1"