From 528804ad2e55983cf3e5e6659d8f46db0cab02b7 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 25 Jul 2021 13:10:10 -0700 Subject: refs transform: 1-index refs.index, not 0-index This was not matching expectations/schema of downstream refs pipeline (cgraph), and wasn't matching documented schema. Note care required when checking if the index is set, to distinguish between '0' and 'None' values. --- tests/test_refs_transform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_refs_transform.py') diff --git a/tests/test_refs_transform.py b/tests/test_refs_transform.py index 3fa490b..5b48396 100644 --- a/tests/test_refs_transform.py +++ b/tests/test_refs_transform.py @@ -27,7 +27,7 @@ def test_transform_refs_grobid() -> None: assert ref.release_year == 1234 assert ref.ref_source == "grobid" assert ref.key == "b12" - assert ref.index == 12 + assert ref.index == 13 assert ref.locator == None assert ref.biblio.contrib_raw_names is not None assert ref.biblio.contrib_raw_names[0] == "K Tasa" -- cgit v1.2.3