From f67e14fdb7ab6cad06b36a532e51eb309001a66f Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Wed, 25 Nov 2020 17:40:21 +0100 Subject: move helpers to utils --- tests/test_utils.py | 4 ++-- tests/test_verify.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3