mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-03 15:05:11 -04:00
Fix CLI tests in Windows
This commit is contained in:
parent
6e5b56e843
commit
3049d066e2
2 changed files with 8 additions and 2 deletions
|
@ -8,6 +8,7 @@ import zipfile
|
|||
import tempfile
|
||||
import base64
|
||||
import shutil
|
||||
import platform
|
||||
from io import BytesIO
|
||||
|
||||
import pytest
|
||||
|
@ -615,6 +616,7 @@ class TestRangeRequests:
|
|||
h.add("Authorization", "Basic " + auth)
|
||||
return h
|
||||
|
||||
@pytest.mark.skipif(platform.system() == "Windows", reason="skip Windows")
|
||||
@check_unsupported("curl", ["--version"])
|
||||
def test_curl(self, temp_dir, tmpdir, common_obj):
|
||||
web = web_obj(temp_dir, common_obj, "share", 3)
|
||||
|
@ -639,6 +641,7 @@ class TestRangeRequests:
|
|||
]
|
||||
)
|
||||
|
||||
@pytest.mark.skipif(platform.system() == "Windows", reason="skip Windows")
|
||||
@check_unsupported("wget", ["--version"])
|
||||
def test_wget(self, temp_dir, tmpdir, common_obj):
|
||||
web = web_obj(temp_dir, common_obj, "share", 3)
|
||||
|
@ -662,6 +665,7 @@ class TestRangeRequests:
|
|||
]
|
||||
)
|
||||
|
||||
@pytest.mark.skipif(platform.system() == "Windows", reason="skip Windows")
|
||||
@check_unsupported("http", ["--version"])
|
||||
def test_httpie(self, temp_dir, common_obj):
|
||||
web = web_obj(temp_dir, common_obj, "share", 3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue