diff --git a/requirements-speedup.txt b/requirements-speedup.txt new file mode 100644 index 0000000..83b4bff --- /dev/null +++ b/requirements-speedup.txt @@ -0,0 +1 @@ +thefuzz[speedup]>=0.19.0 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 037b3ac..82c4d08 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,6 +7,6 @@ py7zr pycountry requests==2.* text2digits -thefuzz[speedup]>=0.19.0 +thefuzz>=0.19.0 typing_extensions wordninja diff --git a/tests/utils_test.py b/tests/utils_test.py index 2223de5..74747e9 100644 --- a/tests/utils_test.py +++ b/tests/utils_test.py @@ -85,13 +85,13 @@ def test_unique_file(tmp_path): def test_add_to_path(monkeypatch): - monkeypatch.setenv("PATH", "/usr/bin") + monkeypatch.setenv("PATH", os.path.abspath("/usr/bin")) comicapi.utils.add_to_path("/bin") - assert os.environ["PATH"] == "/bin:/usr/bin" + assert os.environ["PATH"] == (os.path.abspath("/bin") + os.pathsep + os.path.abspath("/usr/bin")) comicapi.utils.add_to_path("/usr/bin") comicapi.utils.add_to_path("/usr/bin/") - assert os.environ["PATH"] == "/bin:/usr/bin" + assert os.environ["PATH"] == (os.path.abspath("/bin") + os.pathsep + os.path.abspath("/usr/bin")) titles = [