From 56e8991cdbcda09f6e76e4d9affd71e21f945f3b Mon Sep 17 00:00:00 2001 From: David Caro Date: Thu, 24 Aug 2017 15:05:14 +0200 Subject: [PATCH] tests: adapt to the new schemas * Removed the urls, as now only external urls get added. * Removed collection, as it's only populated now on 980__a == HEP (and we don't have that in the test record). Signed-off-by: David Caro --- .../desy/fixtures/desy_ftp_records.json | 36 ----------------- .../desy/fixtures/desy_local_records.json | 36 ----------------- tests/unit/test_desy.py | 39 ------------------- 3 files changed, 111 deletions(-) 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"