summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-07-25 13:10:10 -0700
committerBryan Newbold <bnewbold@archive.org>2021-07-25 13:11:49 -0700
commit528804ad2e55983cf3e5e6659d8f46db0cab02b7 (patch)
tree801df5008ca69ff2c9de17025f238e32fbff61b5 /tests
parent4b970481d9df4c495fb1df24238df7afbd52cf65 (diff)
downloadfatcat-scholar-528804ad2e55983cf3e5e6659d8f46db0cab02b7.tar.gz
fatcat-scholar-528804ad2e55983cf3e5e6659d8f46db0cab02b7.zip
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_refs_transform.py2
1 files changed, 1 insertions, 1 deletions
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"