Skip to content

Commit

Permalink
use absolute imports in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann committed Dec 8, 2022
1 parent 3f83cba commit 88d76eb
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion extern/rapidfuzz-cpp
2 changes: 1 addition & 1 deletion tests/distance/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Prefix_cpp,
Prefix_py,
)
from ..common import GenericScorer, is_none
from tests.common import GenericScorer, is_none


def get_scorer_flags_damerau_levenshtein(s1, s2, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion tests/distance/test_DamerauLevenshtein.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from .common import DamerauLevenshtein
from tests.distance.common import DamerauLevenshtein


@pytest.mark.parametrize(
Expand Down
2 changes: 1 addition & 1 deletion tests/distance/test_Hamming.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .common import Hamming
from tests.distance.common import Hamming


def test_basic():
Expand Down
2 changes: 1 addition & 1 deletion tests/distance/test_Indel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .common import Indel
from tests.distance.common import Indel


def test_basic():
Expand Down
2 changes: 1 addition & 1 deletion tests/distance/test_Jaro.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from .common import Jaro
from tests.distance.common import Jaro


def test_hash_special_case():
Expand Down
2 changes: 1 addition & 1 deletion tests/distance/test_JaroWinkler.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from .common import JaroWinkler
from tests.distance.common import JaroWinkler


def test_hash_special_case():
Expand Down
2 changes: 1 addition & 1 deletion tests/distance/test_LCSseq.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .common import LCSseq
from tests.distance.common import LCSseq


def test_basic():
Expand Down
2 changes: 1 addition & 1 deletion tests/distance/test_Levenshtein.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from rapidfuzz import process
from rapidfuzz.distance import Levenshtein_cpp, Levenshtein_py, Opcode, Opcodes
from .common import Levenshtein
from tests.distance.common import Levenshtein


class CustomHashable:
Expand Down
2 changes: 1 addition & 1 deletion tests/distance/test_OSA.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from rapidfuzz.distance import OSA_cpp, OSA_py
from .common import OSA
from tests.distance.common import OSA


def isclose(a, b, rel_tol=1e-09, abs_tol=0.0):
Expand Down
2 changes: 1 addition & 1 deletion tests/distance/test_Postfix.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .common import Postfix
from tests.distance.common import Postfix


def test_basic():
Expand Down
2 changes: 1 addition & 1 deletion tests/distance/test_Prefix.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .common import Prefix
from tests.distance.common import Prefix


def test_basic():
Expand Down
2 changes: 1 addition & 1 deletion tests/distance/test_distance.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from .common import all_scorer_modules
from tests.distance.common import all_scorer_modules


@pytest.mark.parametrize("scorer", all_scorer_modules)
Expand Down

0 comments on commit 88d76eb

Please sign in to comment.