aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-11-25 17:40:21 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-11-25 17:40:21 +0100
commitf67e14fdb7ab6cad06b36a532e51eb309001a66f (patch)
treea5d2fa390f9a8b992adc185867d8e734ff2c9720 /tests
parent4a9633f0f989f4103a5c35721c5984e21a5d2192 (diff)
downloadfuzzycat-f67e14fdb7ab6cad06b36a532e51eb309001a66f.tar.gz
fuzzycat-f67e14fdb7ab6cad06b36a532e51eb309001a66f.zip
move helpers to utils
Diffstat (limited to 'tests')
-rw-r--r--tests/test_utils.py4
-rw-r--r--tests/test_verify.py5
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py
index bc0d918..9357fe8 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -1,6 +1,7 @@
import pytest
-from fuzzycat.utils import author_similarity_score, cut, slugify_string, jaccard, token_n_grams, tokenize_string, nwise
+from fuzzycat.utils import (author_similarity_score, cut, jaccard, nwise, slugify_string,
+ token_n_grams, tokenize_string)
def test_slugify_string():
@@ -62,4 +63,3 @@ def test_nwise():
assert list(nwise("1234")) == [("1", "2"), ("3", "4")]
assert list(nwise("1234", n=1)) == [("1", ), ("2", ), ("3", ), ("4", )]
assert list(nwise([1, 2, 3, 4, 5], n=3)) == [(1, 2, 3), (4, 5)]
-
diff --git a/tests/test_verify.py b/tests/test_verify.py
index 75e0277..90a22b5 100644
--- a/tests/test_verify.py
+++ b/tests/test_verify.py
@@ -1,8 +1,9 @@
-import pytest
import csv
import json
-import os
import logging
+import os
+
+import pytest
from fuzzycat.verify import Status, compare