aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaptak Sengupta <saptak013@gmail.com>2021-09-02 12:47:35 +0530
committerGitHub <noreply@github.com>2021-09-02 12:47:35 +0530
commitede47aaf48a0e83d6253da085b3360248bf2525d (patch)
treeca628c2c01013c9bb4852f7d9920a8e66cf8fa71
parent3a07bbe16126c6b14fc7ff553d2ef441e959a333 (diff)
parente4178cff49b9616514fbdf8314025bc891ed003a (diff)
downloadonionshare-ede47aaf48a0e83d6253da085b3360248bf2525d.tar.gz
onionshare-ede47aaf48a0e83d6253da085b3360248bf2525d.zip
Merge pull request #1415 from kushaldas/fix_tests_on_linux
Fixes typos about Linux as platform name
-rw-r--r--cli/tests/test_cli_common.py2
-rw-r--r--cli/tests/test_cli_settings.py2
-rw-r--r--cli/tests/test_cli_web.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/cli/tests/test_cli_common.py b/cli/tests/test_cli_common.py
index 3288e52b..9f113a84 100644
--- a/cli/tests/test_cli_common.py
+++ b/cli/tests/test_cli_common.py
@@ -169,7 +169,7 @@ class TestGetTorPaths:
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):
(
tor_path,
diff --git a/cli/tests/test_cli_settings.py b/cli/tests/test_cli_settings.py
index 4c012901..ed8d5bb9 100644
--- a/cli/tests/test_cli_settings.py
+++ b/cli/tests/test_cli_settings.py
@@ -123,7 +123,7 @@ class TestSettings:
"~/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):
obj = settings.Settings(common.Common())
assert obj.filename == os.path.expanduser(
diff --git a/cli/tests/test_cli_web.py b/cli/tests/test_cli_web.py
index f2b1af62..71bfeeeb 100644
--- a/cli/tests/test_cli_web.py
+++ b/cli/tests/test_cli_web.py
@@ -569,7 +569,7 @@ class TestRangeRequests:
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"])
def test_curl(self, temp_dir, tmpdir, common_obj):
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"])
def test_wget(self, temp_dir, tmpdir, common_obj):
web = web_obj(temp_dir, common_obj, "share", 3)