aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-12-14 19:26:25 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-12-14 19:26:25 +0100
commitd3891ff1242627464e7e0eee68ab07a61c0678d4 (patch)
tree9c53773eecd87fd832c61966d3fa133873052c34 /tests
parentb1a3c3145b4fd8930b4f6917004e2a22100fa59c (diff)
downloadfuzzycat-d3891ff1242627464e7e0eee68ab07a61c0678d4.tar.gz
fuzzycat-d3891ff1242627464e7e0eee68ab07a61c0678d4.zip
document test file
Diffstat (limited to 'tests')
-rw-r--r--tests/test_verify.py16
1 files changed, 16 insertions, 0 deletions
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/'