From d3891ff1242627464e7e0eee68ab07a61c0678d4 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Mon, 14 Dec 2020 19:26:25 +0100 Subject: document test file --- tests/test_verify.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests') diff --git a/tests/test_verify.py b/tests/test_verify.py index 79c3143..5c0051c 100644 --- a/tests/test_verify.py +++ b/tests/test_verify.py @@ -7,7 +7,23 @@ import pytest from fuzzycat.verify import Status, verify +# > VERIFY_CSV is a 4-column file describing cases (ident, ident, match status, +# reason), like: +# +# zvsffdeufjb5dbchww7ydqdq3a,5rcu6myqx5ezjjytzpvsauyut4,Status.STRONG,PMID_DOI_PAIR +# cd5aik2whrd5jlvleyvdq6iwja,kfttghqcsbddvofqd7l4bhtavy,Status.DIFFERENT,COMPONENT +# hwnqyz7n65eabhlivvkipkytji,cwqujxztefdghhssb7ysxj7b5m,Status.STRONG,VERSIONED_DOI +# yespzqkm2zed7n4vhjpkddap5e,5yixxzyl3vh4xd56lwcraowgty,Status.AMBIGUOUS, +# pobnow7sxfhnxhltgwpru5k7oi,uplqxenmk5axjes6zokml6q73y,Status.DIFFERENT,RELEASE_TYPE +# +# Idea is to have an easy way to extend and adjust this list and to have it +# indepenent of code (ident, ident, match status) are mandatory, and match +# reason nice to have. +# +# Use Status.TODO to trigger a failure (and see what the matching algorithm +# says). Leave status and reason blank to exclude row from test. VERIFY_CSV = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data/verify.csv") + RELEASE_ENTITIES_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data/release") FATCAT_BASE_URL = 'https://fatcat.wiki/' -- cgit v1.2.3