Fix tests on windows
Make the speedup dependency to thefuzz optional it requires a C compiler
This commit is contained in:
parent
aadeb07c49
commit
f17f560705
1
requirements-speedup.txt
Normal file
1
requirements-speedup.txt
Normal file
@ -0,0 +1 @@
|
||||
thefuzz[speedup]>=0.19.0
|
@ -7,6 +7,6 @@ py7zr
|
||||
pycountry
|
||||
requests==2.*
|
||||
text2digits
|
||||
thefuzz[speedup]>=0.19.0
|
||||
thefuzz>=0.19.0
|
||||
typing_extensions
|
||||
wordninja
|
||||
|
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user