mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-26 15:59:48 -05:00
Merge pull request #1415 from kushaldas/fix_tests_on_linux
Fixes typos about Linux as platform name
This commit is contained in:
commit
ede47aaf48
@ -169,7 +169,7 @@ class TestGetTorPaths:
|
|||||||
obfs4proxy_file_path,
|
obfs4proxy_file_path,
|
||||||
)
|
)
|
||||||
|
|
||||||
@pytest.mark.skipif(sys.platform != "Linux", reason="requires Linux")
|
@pytest.mark.skipif(sys.platform != "linux", reason="requires Linux")
|
||||||
def test_get_tor_paths_linux(self, platform_linux, common_obj):
|
def test_get_tor_paths_linux(self, platform_linux, common_obj):
|
||||||
(
|
(
|
||||||
tor_path,
|
tor_path,
|
||||||
|
@ -123,7 +123,7 @@ class TestSettings:
|
|||||||
"~/Library/Application Support/OnionShare-testdata/onionshare.json"
|
"~/Library/Application Support/OnionShare-testdata/onionshare.json"
|
||||||
)
|
)
|
||||||
|
|
||||||
@pytest.mark.skipif(sys.platform != "Linux", reason="requires Linux")
|
@pytest.mark.skipif(sys.platform != "linux", reason="requires Linux")
|
||||||
def test_filename_linux(self, monkeypatch, platform_linux):
|
def test_filename_linux(self, monkeypatch, platform_linux):
|
||||||
obj = settings.Settings(common.Common())
|
obj = settings.Settings(common.Common())
|
||||||
assert obj.filename == os.path.expanduser(
|
assert obj.filename == os.path.expanduser(
|
||||||
|
@ -569,7 +569,7 @@ class TestRangeRequests:
|
|||||||
assert resp.status_code == 206
|
assert resp.status_code == 206
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(sys.platform != "Linux", reason="requires Linux")
|
@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)
|
||||||
@ -591,7 +591,7 @@ class TestRangeRequests:
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
@pytest.mark.skipif(sys.platform != "Linux", reason="requires Linux")
|
@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)
|
||||||
|
Loading…
Reference in New Issue
Block a user