fix(serverlibrary): remove pytest module
This commit is contained in:
1 parent
38e80b91d6
commit
b5818c3462
1 file changed
+1
-3
@@ -4,8 +4,6 @@ import json
|
||||
import logging
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from serverlibrary import core
|
||||
|
||||
|
||||
@@ -192,7 +190,7 @@ def test_score_match_helpers():
|
||||
search = {"apple", "banana"}
|
||||
candidate = {"apple", "cherry"}
|
||||
assert core.score_match_recall_jaccard(search, candidate) == 0.5
|
||||
assert core.score_match_jaccard(search, candidate) == pytest.approx(1 / 3)
|
||||
assert core.score_match_jaccard(search, candidate) == 1 / 3
|
||||
|
||||
same_words = {"cat", "dog"}
|
||||
assert core.score_match_fuzzy(same_words, same_words) == 1.0
|
||||
|
||||
Reference in new issue
Block a user