mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-07 06:13:03 -04:00
Skip receive mode file permission tests in Windows
This commit is contained in:
parent
15f7d19670
commit
9b78f23ca3
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,7 @@ import pytest
|
||||||
import os
|
import os
|
||||||
import requests
|
import requests
|
||||||
import shutil
|
import shutil
|
||||||
|
import sys
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtTest
|
from PyQt5 import QtCore, QtTest
|
||||||
|
@ -213,6 +214,7 @@ class TestReceive(GuiBaseTest):
|
||||||
self.close_all_tabs()
|
self.close_all_tabs()
|
||||||
|
|
||||||
@pytest.mark.gui
|
@pytest.mark.gui
|
||||||
|
@pytest.mark.skipif(sys.platform == "win32", reason="Windows doesn't have chmod")
|
||||||
def test_upload_non_writable_dir(self):
|
def test_upload_non_writable_dir(self):
|
||||||
"""
|
"""
|
||||||
Test uploading files to a non-writable directory
|
Test uploading files to a non-writable directory
|
||||||
|
@ -237,6 +239,7 @@ class TestReceive(GuiBaseTest):
|
||||||
self.close_all_tabs()
|
self.close_all_tabs()
|
||||||
|
|
||||||
@pytest.mark.gui
|
@pytest.mark.gui
|
||||||
|
@pytest.mark.skipif(sys.platform == "win32", reason="Windows doesn't have chmod")
|
||||||
def test_public_upload_non_writable_dir(self):
|
def test_public_upload_non_writable_dir(self):
|
||||||
"""
|
"""
|
||||||
Test uploading files to a non-writable directory in public mode
|
Test uploading files to a non-writable directory in public mode
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue