From f47a9a26dc832f9404c3c259df2d5489d036500d Mon Sep 17 00:00:00 2001 From: PascalEgn Date: Wed, 26 Jun 2024 15:16:54 +0200 Subject: [PATCH] errata: change reference overwrite behavior --- inspire_json_merger/config.py | 1 - tests/unit/test_merger.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/inspire_json_merger/config.py b/inspire_json_merger/config.py index 192ddb5..6f81f2e 100644 --- a/inspire_json_merger/config.py +++ b/inspire_json_merger/config.py @@ -324,7 +324,6 @@ class ErratumOnPublisherOperations(MergerConfigurationOperations): comparators = COMPARATORS pre_filters = [ update_material, - filter_curated_references, update_authors_with_ordering_info, remove_root ] diff --git a/tests/unit/test_merger.py b/tests/unit/test_merger.py index a7854b9..bd82443 100644 --- a/tests/unit/test_merger.py +++ b/tests/unit/test_merger.py @@ -569,7 +569,7 @@ def test_merging_erratum(fake_get_config): merged, conflict = merge(root, head, update) assert len(merged["publication_info"]) == 2 assert len(merged["dois"]) == 2 - assert len(merged["references"]) == 1 + assert len(merged["references"]) == 2 assert len(conflict) == 1 # author delete