mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-23 07:59:50 -05:00
Fix CLI tests in macOS
This commit is contained in:
parent
6325662b9c
commit
b630a92d5e
@ -8,7 +8,7 @@ import zipfile
|
|||||||
import tempfile
|
import tempfile
|
||||||
import base64
|
import base64
|
||||||
import shutil
|
import shutil
|
||||||
import platform
|
import sys
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@ -616,7 +616,7 @@ class TestRangeRequests:
|
|||||||
h.add("Authorization", "Basic " + auth)
|
h.add("Authorization", "Basic " + auth)
|
||||||
return h
|
return h
|
||||||
|
|
||||||
@pytest.mark.skipif(platform.system() == "Windows", reason="skip Windows")
|
@pytest.mark.skipif(sys.platform != "Linux", reason="requires Linux")
|
||||||
@check_unsupported("curl", ["--version"])
|
@check_unsupported("curl", ["--version"])
|
||||||
def test_curl(self, temp_dir, tmpdir, common_obj):
|
def test_curl(self, temp_dir, tmpdir, common_obj):
|
||||||
web = web_obj(temp_dir, common_obj, "share", 3)
|
web = web_obj(temp_dir, common_obj, "share", 3)
|
||||||
@ -641,7 +641,7 @@ class TestRangeRequests:
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
@pytest.mark.skipif(platform.system() == "Windows", reason="skip Windows")
|
@pytest.mark.skipif(sys.platform != "Linux", reason="requires Linux")
|
||||||
@check_unsupported("wget", ["--version"])
|
@check_unsupported("wget", ["--version"])
|
||||||
def test_wget(self, temp_dir, tmpdir, common_obj):
|
def test_wget(self, temp_dir, tmpdir, common_obj):
|
||||||
web = web_obj(temp_dir, common_obj, "share", 3)
|
web = web_obj(temp_dir, common_obj, "share", 3)
|
||||||
@ -665,7 +665,7 @@ class TestRangeRequests:
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
@pytest.mark.skipif(platform.system() == "Windows", reason="skip Windows")
|
@pytest.mark.skipif(sys.platform != "Linux", reason="requires Linux")
|
||||||
@check_unsupported("http", ["--version"])
|
@check_unsupported("http", ["--version"])
|
||||||
def test_httpie(self, temp_dir, common_obj):
|
def test_httpie(self, temp_dir, common_obj):
|
||||||
web = web_obj(temp_dir, common_obj, "share", 3)
|
web = web_obj(temp_dir, common_obj, "share", 3)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user