From 4cc7edecd409e4ae48281d47384f0f563bbb962d Mon Sep 17 00:00:00 2001 From: Harris Tzovanakis Date: Wed, 2 May 2018 14:21:53 +0200 Subject: [PATCH] tests: fix test record ``$refs`` pointing to labs * Removes the ``$refs`` from the test record which were pointing to labs. Signed-off-by: Harris Tzovanakis --- .../fixtures/merge_record_with_documents.json | 337 ------------------ .../fixtures/record_for_merging.json | 40 +++ .../integration/workflows/test_arxiv_merge.py | 14 +- 3 files changed, 47 insertions(+), 344 deletions(-) delete mode 100644 tests/integration/workflows/fixtures/merge_record_with_documents.json create mode 100644 tests/integration/workflows/fixtures/record_for_merging.json diff --git a/tests/integration/workflows/fixtures/merge_record_with_documents.json b/tests/integration/workflows/fixtures/merge_record_with_documents.json deleted file mode 100644 index 07cdc9cf80..0000000000 --- a/tests/integration/workflows/fixtures/merge_record_with_documents.json +++ /dev/null @@ -1,337 +0,0 @@ -{ - "$schema": "https://labs.inspirehep.net/schemas/records/hep.json", - "_collections": [ - "Literature" - ], - "_desy_bookkeeping": [ - { - "identifier": "DA17-kp13m" - }, - { - "date": "2017-03-23", - "expert": "M", - "status": "abs" - }, - { - "date": "2017-03-28", - "expert": "M", - "status": "printed" - }, - { - "date": "2017-03-30", - "expert": "M", - "status": "final" - } - ], - "abstracts": [ - { - "source": "Oxford University Press", - "value": "The gradient flow and its small flow-time expansion provide a very versatile method to represent renormalized composite operators in a regularization-independent manner. This technique has been utilized to construct typical Noether currents such as the energy\u2013momentum tensor and the axial-vector current in lattice gauge theory. In this paper, we apply the same technique to the supercurrent in the four-dimensional $$\\mathcal{N}=1$$ super Yang\u2013Mills theory (4D $$\\mathcal{N}=1$$ SYM) in the Wess\u2013Zumino gauge. Since this approach provides a priori a representation of the properly normalized conserved supercurrent, our result should be useful, e.g., in lattice numerical simulations of the 4D $$\\mathcal{N}=1$$ SYM; the conservation of the so-constructed supercurrent can be used as a criterion for the supersymmetric point toward which the gluino mass is tuned." - }, - { - "source": "arXiv", - "value": "The gradient flow and its small flow-time expansion provide a very versatile method to represent renormalized composite operators in a regularization-independent manner. This technique has been utilized to construct typical Noether currents such as the energy--momentum tensor and the axial-vector current in lattice gauge theory. In this paper, we apply the same technique to the supercurrent in the four-dimensional $\\mathcal{N}=1$ super Yang--Mills theory (4D $\\mathcal{N}=1$ SYM) in the Wess--Zumino gauge. Since this approach provides a priori a representation of the properly normalized conserved supercurrent, our result should be useful, e.g., in lattice numerical simulations of the 4D $\\mathcal{N}=1$ SYM; the conservation of the so-constructed supercurrent can be used as a criterion for the supersymmetric point toward which the gluino mass is tuned." - } - ], - "acquisition_source": { - "method": "oai", - "source": "arxiv" - }, - "arxiv_eprints": [ - { - "categories": [ - "hep-lat", - "hep-th" - ], - "value": "1703.04802" - } - ], - "authors": [ - { - "affiliations": [ - { - "record": { - "$ref": "http://labs.inspirehep.net/api/institutions/902946" - }, - "value": "Kyushu U." - } - ], - "full_name": "Hieda, Kenji", - "ids": [ - { - "schema": "INSPIRE BAI", - "value": "K.Hieda.2" - } - ], - "raw_affiliations": [ - { - "value": "Department of Physics, Kyushu University, 744 Motooka, Nishi-ku, Fukuoka 819-0395, Japan" - } - ], - "signature_block": "HADk", - "uuid": "c3bd1293-9eec-4922-88e4-1f5479eaf54b" - }, - { - "affiliations": [ - { - "record": { - "$ref": "http://labs.inspirehep.net/api/institutions/902946" - }, - "value": "Kyushu U." - } - ], - "full_name": "Kasai, Aya", - "ids": [ - { - "schema": "INSPIRE BAI", - "value": "A.Kasai.1" - } - ], - "raw_affiliations": [ - { - "value": "Department of Physics, Kyushu University, 744 Motooka, Nishi-ku, Fukuoka 819-0395, Japan" - } - ], - "signature_block": "CASa", - "uuid": "3a55af00-6867-45d9-a689-552ce8515a6f" - }, - { - "affiliations": [ - { - "record": { - "$ref": "http://labs.inspirehep.net/api/institutions/902946" - }, - "value": "Kyushu U." - } - ], - "full_name": "Makino, Hiroki", - "ids": [ - { - "schema": "INSPIRE BAI", - "value": "H.Makino.1" - } - ], - "raw_affiliations": [ - { - "value": "Department of Physics, Kyushu University, 744 Motooka, Nishi-ku, Fukuoka 819-0395, Japan" - } - ], - "signature_block": "MACANh", - "uuid": "578c46f3-4012-41c1-aedd-d20a808212e5" - }, - { - "affiliations": [ - { - "record": { - "$ref": "http://labs.inspirehep.net/api/institutions/902946" - }, - "value": "Kyushu U." - } - ], - "curated_relation": true, - "full_name": "Suzuki, Hiroshi", - "ids": [ - { - "schema": "INSPIRE BAI", - "value": "Hiroshi.Suzuki.1" - } - ], - "raw_affiliations": [ - { - "value": "Department of Physics, Kyushu University, 744 Motooka, Nishi-ku, Fukuoka 819-0395, Japan" - } - ], - "record": { - "$ref": "http://labs.inspirehep.net/api/authors/987060" - }, - "signature_block": "SASACh", - "uuid": "5a8bf4ac-71c8-42c7-9d01-0d578248429b" - } - ], - "citeable": true, - "control_number": 1517502, - "core": true, - "document_type": [ - "article" - ], - "documents": [ - { - "key": "arXiv:1703.04802.pdf", - "source": "arXiv", - "url": "http://labs.inspirehep.com/files/arXiv:1703.04802.pdf" - } - ], - "dois": [ - { - "source": "bibmatch", - "value": "10.1093/ptep/ptx073" - } - ], - "figures": [ - { - "caption": "Diagram i", - "key": "i.png", - "url": "http://labs.inspirehep.com/files/i.png" - } - ], - "imprints": [ - { - "date": "2017-06-01" - } - ], - "inspire_categories": [ - { - "term": "Lattice" - }, - { - "term": "Theory-HEP" - } - ], - "keywords": [ - { - "source": "author", - "value": "B01" - }, - { - "source": "author", - "value": "B16" - }, - { - "source": "author", - "value": "B31" - }, - { - "source": "author", - "value": "B32" - }, - { - "source": "author", - "value": "B01 Spontaneous symmetry breaking" - }, - { - "source": "author", - "value": "B16 Supersymmetric field theory" - }, - { - "source": "author", - "value": "B31 Symmetries and anomalies" - }, - { - "source": "author", - "value": "B32 Renormalization and renormalization group equation" - }, - { - "schema": "INSPIRE", - "value": "lattice field theory: supersymmetry" - }, - { - "schema": "INSPIRE", - "value": "supersymmetry: 1" - }, - { - "schema": "INSPIRE", - "value": "gauge field theory: Yang-Mills: supersymmetry" - }, - { - "schema": "INSPIRE", - "value": "dimension: 4" - }, - { - "schema": "INSPIRE", - "value": "tensor: energy-momentum" - }, - { - "schema": "INSPIRE", - "value": "current: axial-vector" - }, - { - "schema": "INSPIRE", - "value": "operator: composite" - }, - { - "schema": "INSPIRE", - "value": "gluino: mass" - }, - { - "schema": "INSPIRE", - "value": "conservation law" - }, - { - "schema": "INSPIRE", - "value": "flow: Wilson" - }, - { - "schema": "INSPIRE", - "value": "numerical calculations" - }, - { - "schema": "INSPIRE", - "value": "current: Noether" - }, - { - "schema": "INSPIRE", - "value": "lattice" - }, - { - "schema": "INSPIRE", - "value": "regularization: dimensional" - }, - { - "schema": "INSPIRE", - "value": "Ward-Takahashi identity" - }, - { - "schema": "INSPIRE", - "value": "renormalization" - }, - { - "schema": "INSPIRE", - "value": "supersymmetry: current" - } - ], - "legacy_creation_date": "2017-03-16", - "license": [ - { - "imposing": "arXiv", - "url": "http://arxiv.org/licenses/nonexclusive-distrib/1.0/" - } - ], - "number_of_pages": 21, - "preprint_date": "2017-03-14", - "public_notes": [ - { - "source": "arXiv", - "value": "22 pages, 9 figures, Typos in Eqs. (3.33) and (3.34) are corrected" - } - ], - "publication_info": [ - { - "artid": "063B03", - "journal_issue": "6", - "journal_record": { - "$ref": "http://labs.inspirehep.net/api/journals/1211579" - }, - "journal_title": "PTEP", - "journal_volume": "2017", - "year": 2017 - } - ], - "refereed": true, - "report_numbers": [ - { - "value": "KYUSHU-HET-175" - } - ], - "self": { - "$ref": "http://labs.inspirehep.net/api/literature/1517502" - }, - "texkeys": [ - "Hieda:2017sqq" - ], - "titles": [ - { - "source": "arXiv", - "title": "4D $\\mathcal{N}=1$ SYM supercurrent in terms of the gradient flow" - } - ] -} diff --git a/tests/integration/workflows/fixtures/record_for_merging.json b/tests/integration/workflows/fixtures/record_for_merging.json new file mode 100644 index 0000000000..3430345f70 --- /dev/null +++ b/tests/integration/workflows/fixtures/record_for_merging.json @@ -0,0 +1,40 @@ +{ + "$schema": "https://localhost:5000/schemas/records/hep.json", + "_collections": [ + "Literature" + ], + "abstracts": [ + { + "source": "Oxford University Press", + "value": "The gradient flow and its small flow-time expansion provide a very versatile method to represent renormalized composite operators in a regularization-independent manner. This technique has been utilized to construct typical Noether currents such as the energy\u2013momentum tensor and the axial-vector current in lattice gauge theory. In this paper, we apply the same technique to the supercurrent in the four-dimensional $$\\mathcal{N}=1$$ super Yang\u2013Mills theory (4D $$\\mathcal{N}=1$$ SYM) in the Wess\u2013Zumino gauge. Since this approach provides a priori a representation of the properly normalized conserved supercurrent, our result should be useful, e.g., in lattice numerical simulations of the 4D $$\\mathcal{N}=1$$ SYM; the conservation of the so-constructed supercurrent can be used as a criterion for the supersymmetric point toward which the gluino mass is tuned." + } + ], + "acquisition_source": { + "method": "oai", + "source": "arxiv" + }, + "arxiv_eprints": [ + { + "categories": [ + "hep-lat", + "hep-th" + ], + "value": "1703.04802" + } + ], + "document_type": [ + "article" + ], + "dois": [ + { + "source": "bibmatch", + "value": "10.1093/ptep/ptx073" + } + ], + "titles": [ + { + "source": "arXiv", + "title": "4D $\\mathcal{N}=1$ SYM supercurrent in terms of the gradient flow" + } + ] +} diff --git a/tests/integration/workflows/test_arxiv_merge.py b/tests/integration/workflows/test_arxiv_merge.py index 6c71966b16..1d1da91f91 100644 --- a/tests/integration/workflows/test_arxiv_merge.py +++ b/tests/integration/workflows/test_arxiv_merge.py @@ -72,7 +72,7 @@ def disable_file_upload(workflow_app): def test_merge_with_disabled_merge_on_update_feature_flag(workflow_app, disable_file_upload): factory = TestRecordMetadata.create_from_file( - __name__, 'merge_record_with_documents.json') + __name__, 'record_for_merging.json') record_update = RECORD_WITHOUT_CONFLICTS record_update.update({ @@ -92,7 +92,7 @@ def test_merge_with_disabled_merge_on_update_feature_flag(workflow_app, disable_ def test_merge_without_conflicts(workflow_app, enable_merge_on_update, disable_file_upload): factory = TestRecordMetadata.create_from_file( - __name__, 'merge_record_with_documents.json') + __name__, 'record_for_merging.json') record_update = RECORD_WITHOUT_CONFLICTS record_update.update({ @@ -116,7 +116,7 @@ def test_merge_without_conflicts(workflow_app, enable_merge_on_update, disable_f def test_merge_with_conflicts(workflow_app, enable_merge_on_update, disable_file_upload): factory = TestRecordMetadata.create_from_file( - __name__, 'merge_record_with_documents.json') + __name__, 'record_for_merging.json') record_update = RECORD_WITH_CONFLICTS record_update.update({ @@ -138,7 +138,7 @@ def test_merge_with_conflicts(workflow_app, enable_merge_on_update, disable_file def test_merge_without_conflicts_callback_url(workflow_app, enable_merge_on_update, disable_file_upload): factory = TestRecordMetadata.create_from_file( - __name__, 'merge_record_with_documents.json') + __name__, 'record_for_merging.json') record_update = RECORD_WITHOUT_CONFLICTS record_update.update({ @@ -176,7 +176,7 @@ def test_merge_without_conflicts_callback_url(workflow_app, enable_merge_on_upda def test_merge_with_conflicts_callback_url(workflow_app, enable_merge_on_update, disable_file_upload): factory = TestRecordMetadata.create_from_file( - __name__, 'merge_record_with_documents.json') + __name__, 'record_for_merging.json') record_update = RECORD_WITH_CONFLICTS record_update.update({ @@ -224,7 +224,7 @@ def test_merge_with_conflicts_callback_url(workflow_app, enable_merge_on_update, def test_merge_with_conflicts_callback_url_and_resolve(workflow_app, enable_merge_on_update, disable_file_upload): factory = TestRecordMetadata.create_from_file( - __name__, 'merge_record_with_documents.json') + __name__, 'record_for_merging.json') record_update = RECORD_WITH_CONFLICTS record_update.update({ @@ -277,7 +277,7 @@ def test_merge_with_conflicts_callback_url_and_resolve(workflow_app, enable_merg def test_merge_callback_url_with_malformed_workflow(workflow_app, enable_merge_on_update, disable_file_upload): factory = TestRecordMetadata.create_from_file( - __name__, 'merge_record_with_documents.json') + __name__, 'record_for_merging.json') record_update = RECORD_WITH_CONFLICTS record_update.update({