aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_grobid_unstructured.py
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-11-05 17:19:07 +0100
committerMartin Czygan <martin.czygan@gmail.com>2021-11-16 18:58:42 +0100
commit0c84af603894049dd8edd95da18d8990ab0516d1 (patch)
tree08fb4ad2b3a498e2edac73972f97e427e0194759 /tests/test_grobid_unstructured.py
parent282f315c6ba3643c8c614220ab2f7e1d55de3658 (diff)
downloadfuzzycat-0c84af603894049dd8edd95da18d8990ab0516d1.tar.gz
fuzzycat-0c84af603894049dd8edd95da18d8990ab0516d1.zip
turn "match_release_fuzzy" into a class
Goal of this refactoring was to make the matching process a bit more configurable by using a class and a cascade of queries. For a limited test set: `FuzzyReleaseMatcher.match` is works the same as `match_release_fuzzy`.
Diffstat (limited to 'tests/test_grobid_unstructured.py')
-rw-r--r--tests/test_grobid_unstructured.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/test_grobid_unstructured.py b/tests/test_grobid_unstructured.py
index cf71f91..f36f9a4 100644
--- a/tests/test_grobid_unstructured.py
+++ b/tests/test_grobid_unstructured.py
@@ -18,11 +18,7 @@ def test_grobid_ref_to_release():
given_name='ahab',
surname='sailor',
),
- GrobidAuthor(
- full_name='mary jane',
- given_name='mary',
- surname='jane'
- ),
+ GrobidAuthor(full_name='mary jane', given_name='mary', surname='jane'),
],
)
r = grobid_ref_to_release(d)