summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2019-01-15 21:52:42 -0800
committerMicah Lee <micah@micahflee.com>2019-01-15 21:52:42 -0800
commitb39eb126c06c79adc18316a9af47536565f09327 (patch)
tree5ccdf126076cf9ba8575d2f5f876185c0756760d
parent6cb76700379ce1b78f94967c514fc42c72044ba0 (diff)
downloadonionshare-b39eb126c06c79adc18316a9af47536565f09327.tar.gz
onionshare-b39eb126c06c79adc18316a9af47536565f09327.zip
Make it so GUI tests only run with --rungui
-rw-r--r--tests/conftest.py21
-rw-r--r--tests/local_onionshare_404_public_mode_skips_ratelimit_test.py2
-rw-r--r--tests/local_onionshare_404_triggers_ratelimit_test.py2
-rw-r--r--tests/local_onionshare_quitting_during_share_prompts_warning_test.py2
-rw-r--r--tests/local_onionshare_receive_mode_sender_closed_test.py2
-rw-r--r--tests/local_onionshare_receive_mode_timer_test.py2
-rw-r--r--tests/local_onionshare_receive_mode_upload_non_writable_dir_test.py2
-rw-r--r--tests/local_onionshare_receive_mode_upload_public_mode_non_writable_dir_test.py2
-rw-r--r--tests/local_onionshare_receive_mode_upload_public_mode_test.py2
-rw-r--r--tests/local_onionshare_receive_mode_upload_test.py2
-rw-r--r--tests/local_onionshare_settings_dialog_legacy_tor_test.py2
-rw-r--r--tests/local_onionshare_settings_dialog_no_tor_test.py2
-rw-r--r--tests/local_onionshare_settings_dialog_v3_tor_test.py2
-rw-r--r--tests/local_onionshare_share_mode_download_public_mode_test.py2
-rw-r--r--tests/local_onionshare_share_mode_download_stay_open_test.py2
-rw-r--r--tests/local_onionshare_share_mode_download_test.py2
-rw-r--r--tests/local_onionshare_share_mode_large_download_test.py2
-rw-r--r--tests/local_onionshare_share_mode_slug_persistent_test.py2
-rw-r--r--tests/local_onionshare_share_mode_timer_test.py2
-rw-r--r--tests/local_onionshare_share_mode_timer_too_short_test.py2
-rw-r--r--tests/local_onionshare_share_mode_unreadable_file_test.py2
-rw-r--r--tests/onionshare_790_cancel_on_second_share_test.py3
-rw-r--r--tests/onionshare_receive_mode_upload_public_mode_test.py1
-rw-r--r--tests/onionshare_receive_mode_upload_test.py1
-rw-r--r--tests/onionshare_share_mode_cancel_share_test.py1
-rw-r--r--tests/onionshare_share_mode_download_public_mode_test.py1
-rw-r--r--tests/onionshare_share_mode_download_stay_open_test.py1
-rw-r--r--tests/onionshare_share_mode_download_test.py1
-rw-r--r--tests/onionshare_share_mode_persistent_test.py1
-rw-r--r--tests/onionshare_share_mode_stealth_test.py1
-rw-r--r--tests/onionshare_share_mode_timer_test.py1
-rw-r--r--tests/onionshare_share_mode_tor_connection_killed_test.py1
-rw-r--r--tests/onionshare_share_mode_v2_onion_test.py1
33 files changed, 68 insertions, 7 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 688b22d8..7aca2b2c 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -12,18 +12,27 @@ from onionshare import common, web, settings, strings
def pytest_addoption(parser):
parser.addoption(
+ "--rungui", action="store_true", default=False, help="run GUI tests"
+ )
+ parser.addoption(
"--runtor", action="store_true", default=False, help="run tor tests"
)
def pytest_collection_modifyitems(config, items):
- if config.getoption("--runtor"):
+ if not config.getoption("--runtor"):
# --runtor given in cli: do not skip tor tests
- return
- skip_tor = pytest.mark.skip(reason="need --runtor option to run")
- for item in items:
- if "tor" in item.keywords:
- item.add_marker(skip_tor)
+ skip_tor = pytest.mark.skip(reason="need --runtor option to run")
+ for item in items:
+ if "tor" in item.keywords:
+ item.add_marker(skip_tor)
+
+ if not config.getoption('--rungui'):
+ # --rungui given in cli: do not skip GUI tests
+ skip_gui = pytest.mark.skip(reason="need --rungui option to run")
+ for item in items:
+ if "gui" in item.keywords:
+ item.add_marker(skip_gui)
@pytest.fixture
diff --git a/tests/local_onionshare_404_public_mode_skips_ratelimit_test.py b/tests/local_onionshare_404_public_mode_skips_ratelimit_test.py
index 11feb6f0..ebb524c2 100644
--- a/tests/local_onionshare_404_public_mode_skips_ratelimit_test.py
+++ b/tests/local_onionshare_404_public_mode_skips_ratelimit_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from .GuiShareTest import GuiShareTest
@@ -16,6 +17,7 @@ class Local404PublicModeRateLimitTest(unittest.TestCase, GuiShareTest):
def tearDownClass(cls):
GuiShareTest.tear_down()
+ @pytest.mark.gui
def test_gui(self):
self.run_all_common_setup_tests()
self.run_all_share_mode_tests(True, True)
diff --git a/tests/local_onionshare_404_triggers_ratelimit_test.py b/tests/local_onionshare_404_triggers_ratelimit_test.py
index ad49c3f8..8ed0777a 100644
--- a/tests/local_onionshare_404_triggers_ratelimit_test.py
+++ b/tests/local_onionshare_404_triggers_ratelimit_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from .GuiShareTest import GuiShareTest
@@ -15,6 +16,7 @@ class Local404RateLimitTest(unittest.TestCase, GuiShareTest):
def tearDownClass(cls):
GuiShareTest.tear_down()
+ @pytest.mark.gui
def test_gui(self):
self.run_all_common_setup_tests()
self.run_all_share_mode_tests(False, True)
diff --git a/tests/local_onionshare_quitting_during_share_prompts_warning_test.py b/tests/local_onionshare_quitting_during_share_prompts_warning_test.py
index d2fe4986..e57167c8 100644
--- a/tests/local_onionshare_quitting_during_share_prompts_warning_test.py
+++ b/tests/local_onionshare_quitting_during_share_prompts_warning_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from PyQt5 import QtCore, QtTest
@@ -16,6 +17,7 @@ class LocalQuittingDuringSharePromptsWarningTest(unittest.TestCase, GuiShareTest
def tearDownClass(cls):
GuiShareTest.tear_down()
+ @pytest.mark.gui
def test_gui(self):
self.run_all_common_setup_tests()
self.run_all_share_mode_tests(False, True)
diff --git a/tests/local_onionshare_receive_mode_sender_closed_test.py b/tests/local_onionshare_receive_mode_sender_closed_test.py
index e177d2ef..bfb9499a 100644
--- a/tests/local_onionshare_receive_mode_sender_closed_test.py
+++ b/tests/local_onionshare_receive_mode_sender_closed_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from .GuiReceiveTest import GuiReceiveTest
@@ -15,6 +16,7 @@ class LocalReceiveModeSenderClosedTest(unittest.TestCase, GuiReceiveTest):
def tearDownClass(cls):
GuiReceiveTest.tear_down()
+ @pytest.mark.gui
def test_gui(self):
self.run_all_common_setup_tests()
self.run_all_receive_mode_tests(False, True)
diff --git a/tests/local_onionshare_receive_mode_timer_test.py b/tests/local_onionshare_receive_mode_timer_test.py
index 88002f94..0acaa4a9 100644
--- a/tests/local_onionshare_receive_mode_timer_test.py
+++ b/tests/local_onionshare_receive_mode_timer_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from .GuiReceiveTest import GuiReceiveTest
@@ -16,6 +17,7 @@ class LocalReceiveModeTimerTest(unittest.TestCase, GuiReceiveTest):
def tearDownClass(cls):
GuiReceiveTest.tear_down()
+ @pytest.mark.gui
def test_gui(self):
self.run_all_common_setup_tests()
self.run_all_receive_mode_timer_tests(False)
diff --git a/tests/local_onionshare_receive_mode_upload_non_writable_dir_test.py b/tests/local_onionshare_receive_mode_upload_non_writable_dir_test.py
index 7d7b2780..a1dcd679 100644
--- a/tests/local_onionshare_receive_mode_upload_non_writable_dir_test.py
+++ b/tests/local_onionshare_receive_mode_upload_non_writable_dir_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from .GuiReceiveTest import GuiReceiveTest
@@ -15,6 +16,7 @@ class LocalReceiveModeUnwritableTest(unittest.TestCase, GuiReceiveTest):
def tearDownClass(cls):
GuiReceiveTest.tear_down()
+ @pytest.mark.gui
def test_gui(self):
self.run_all_common_setup_tests()
self.run_all_receive_mode_unwritable_dir_tests(False, True)
diff --git a/tests/local_onionshare_receive_mode_upload_public_mode_non_writable_dir_test.py b/tests/local_onionshare_receive_mode_upload_public_mode_non_writable_dir_test.py
index cdc4e62a..529e0c87 100644
--- a/tests/local_onionshare_receive_mode_upload_public_mode_non_writable_dir_test.py
+++ b/tests/local_onionshare_receive_mode_upload_public_mode_non_writable_dir_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from .GuiReceiveTest import GuiReceiveTest
@@ -16,6 +17,7 @@ class LocalReceivePublicModeUnwritableTest(unittest.TestCase, GuiReceiveTest):
def tearDownClass(cls):
GuiReceiveTest.tear_down()
+ @pytest.mark.gui
def test_gui(self):
self.run_all_common_setup_tests()
self.run_all_receive_mode_unwritable_dir_tests(True, True)
diff --git a/tests/local_onionshare_receive_mode_upload_public_mode_test.py b/tests/local_onionshare_receive_mode_upload_public_mode_test.py
index bedb7ae2..f8bd38bd 100644
--- a/tests/local_onionshare_receive_mode_upload_public_mode_test.py
+++ b/tests/local_onionshare_receive_mode_upload_public_mode_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from .GuiReceiveTest import GuiReceiveTest
@@ -16,6 +17,7 @@ class LocalReceiveModePublicModeTest(unittest.TestCase, GuiReceiveTest):
def tearDownClass(cls):
GuiReceiveTest.tear_down()
+ @pytest.mark.gui
def test_gui(self):
self.run_all_common_setup_tests()
self.run_all_receive_mode_tests(True, True)
diff --git a/tests/local_onionshare_receive_mode_upload_test.py b/tests/local_onionshare_receive_mode_upload_test.py
index 82baf3fd..362e3b85 100644
--- a/tests/local_onionshare_receive_mode_upload_test.py
+++ b/tests/local_onionshare_receive_mode_upload_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from .GuiReceiveTest import GuiReceiveTest
@@ -15,6 +16,7 @@ class LocalReceiveModeTest(unittest.TestCase, GuiReceiveTest):
def tearDownClass(cls):
GuiReceiveTest.tear_down()
+ @pytest.mark.gui
def test_gui(self):
self.run_all_common_setup_tests()
self.run_all_receive_mode_tests(False, True)
diff --git a/tests/local_onionshare_settings_dialog_legacy_tor_test.py b/tests/local_onionshare_settings_dialog_legacy_tor_test.py
index ae6ce272..f32023fe 100644
--- a/tests/local_onionshare_settings_dialog_legacy_tor_test.py
+++ b/tests/local_onionshare_settings_dialog_legacy_tor_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from onionshare import strings
@@ -14,6 +15,7 @@ class SettingsGuiTest(unittest.TestCase, SettingsGuiBaseTest):
def tearDownClass(cls):
SettingsGuiBaseTest.tear_down()
+ @pytest.mark.gui
def test_gui_legacy_tor(self):
self.gui.onion = OnionStub(True, False)
self.gui.reload_settings()
diff --git a/tests/local_onionshare_settings_dialog_no_tor_test.py b/tests/local_onionshare_settings_dialog_no_tor_test.py
index f01e049d..b34cbff3 100644
--- a/tests/local_onionshare_settings_dialog_no_tor_test.py
+++ b/tests/local_onionshare_settings_dialog_no_tor_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from onionshare import strings
@@ -14,6 +15,7 @@ class SettingsGuiTest(unittest.TestCase, SettingsGuiBaseTest):
def tearDownClass(cls):
SettingsGuiBaseTest.tear_down()
+ @pytest.mark.gui
def test_gui_no_tor(self):
self.gui.onion = OnionStub(False, False)
self.gui.reload_settings()
diff --git a/tests/local_onionshare_settings_dialog_v3_tor_test.py b/tests/local_onionshare_settings_dialog_v3_tor_test.py
index cb10f8c9..1dd17c0f 100644
--- a/tests/local_onionshare_settings_dialog_v3_tor_test.py
+++ b/tests/local_onionshare_settings_dialog_v3_tor_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from onionshare import strings
@@ -14,6 +15,7 @@ class SettingsGuiTest(unittest.TestCase, SettingsGuiBaseTest):
def tearDownClass(cls):
SettingsGuiBaseTest.tear_down()
+ @pytest.mark.gui
def test_gui_v3_tor(self):
self.gui.onion = OnionStub(True, True)
self.gui.reload_settings()
diff --git a/tests/local_onionshare_share_mode_download_public_mode_test.py b/tests/local_onionshare_share_mode_download_public_mode_test.py
index d6dff13a..f9a9dc4c 100644
--- a/tests/local_onionshare_share_mode_download_public_mode_test.py
+++ b/tests/local_onionshare_share_mode_download_public_mode_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from .GuiShareTest import GuiShareTest
@@ -15,6 +16,7 @@ class LocalShareModePublicModeTest(unittest.TestCase, GuiShareTest):
def tearDownClass(cls):
GuiShareTest.tear_down()
+ @pytest.mark.gui
def test_gui(self):
self.run_all_common_setup_tests()
self.run_all_share_mode_tests(True, False)
diff --git a/tests/local_onionshare_share_mode_download_stay_open_test.py b/tests/local_onionshare_share_mode_download_stay_open_test.py
index 54d6de51..65304924 100644
--- a/tests/local_onionshare_share_mode_download_stay_open_test.py
+++ b/tests/local_onionshare_share_mode_download_stay_open_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from .GuiShareTest import GuiShareTest
@@ -15,6 +16,7 @@ class LocalShareModeStayOpenTest(unittest.TestCase, GuiShareTest):
def tearDownClass(cls):
GuiShareTest.tear_down()
+ @pytest.mark.gui
def test_gui(self):
self.run_all_common_setup_tests()
self.run_all_share_mode_tests(False, True)
diff --git a/tests/local_onionshare_share_mode_download_test.py b/tests/local_onionshare_share_mode_download_test.py
index ff182740..ea16683e 100644
--- a/tests/local_onionshare_share_mode_download_test.py
+++ b/tests/local_onionshare_share_mode_download_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from .GuiShareTest import GuiShareTest
@@ -14,6 +15,7 @@ class LocalShareModeTest(unittest.TestCase, GuiShareTest):
def tearDownClass(cls):
GuiShareTest.tear_down()
+ @pytest.mark.gui
def test_gui(self):
self.run_all_common_setup_tests()
self.run_all_share_mode_tests(False, False)
diff --git a/tests/local_onionshare_share_mode_large_download_test.py b/tests/local_onionshare_share_mode_large_download_test.py
index 46e6df28..7d0595a2 100644
--- a/tests/local_onionshare_share_mode_large_download_test.py
+++ b/tests/local_onionshare_share_mode_large_download_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from .GuiShareTest import GuiShareTest
@@ -14,6 +15,7 @@ class LocalShareModeLargeDownloadTest(unittest.TestCase, GuiShareTest):
def tearDownClass(cls):
GuiShareTest.tear_down()
+ @pytest.mark.gui
def test_gui(self):
self.run_all_common_setup_tests()
self.run_all_large_file_tests(False, True)
diff --git a/tests/local_onionshare_share_mode_slug_persistent_test.py b/tests/local_onionshare_share_mode_slug_persistent_test.py
index a1cc6972..7254f3ff 100644
--- a/tests/local_onionshare_share_mode_slug_persistent_test.py
+++ b/tests/local_onionshare_share_mode_slug_persistent_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from .GuiShareTest import GuiShareTest
@@ -18,6 +19,7 @@ class LocalShareModePersistentSlugTest(unittest.TestCase, GuiShareTest):
def tearDownClass(cls):
GuiShareTest.tear_down()
+ @pytest.mark.gui
def test_gui(self):
self.run_all_common_setup_tests()
self.run_all_share_mode_persistent_tests(False, True)
diff --git a/tests/local_onionshare_share_mode_timer_test.py b/tests/local_onionshare_share_mode_timer_test.py
index 41a6268d..e30ce4ec 100644
--- a/tests/local_onionshare_share_mode_timer_test.py
+++ b/tests/local_onionshare_share_mode_timer_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from .GuiShareTest import GuiShareTest
@@ -16,6 +17,7 @@ class LocalShareModeTimerTest(unittest.TestCase, GuiShareTest):
def tearDownClass(cls):
GuiShareTest.tear_down()
+ @pytest.mark.gui
def test_gui(self):
self.run_all_common_setup_tests()
self.run_all_share_mode_timer_tests(False)
diff --git a/tests/local_onionshare_share_mode_timer_too_short_test.py b/tests/local_onionshare_share_mode_timer_too_short_test.py
index 41c30883..8d22048d 100644
--- a/tests/local_onionshare_share_mode_timer_too_short_test.py
+++ b/tests/local_onionshare_share_mode_timer_too_short_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from PyQt5 import QtCore, QtTest
@@ -17,6 +18,7 @@ class LocalShareModeTimerTooShortTest(unittest.TestCase, GuiShareTest):
def tearDownClass(cls):
GuiShareTest.tear_down()
+ @pytest.mark.gui
def test_gui(self):
self.run_all_common_setup_tests()
self.run_all_share_mode_setup_tests()
diff --git a/tests/local_onionshare_share_mode_unreadable_file_test.py b/tests/local_onionshare_share_mode_unreadable_file_test.py
index 38a0e847..c74d7a0a 100644
--- a/tests/local_onionshare_share_mode_unreadable_file_test.py
+++ b/tests/local_onionshare_share_mode_unreadable_file_test.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+import pytest
import unittest
from .GuiShareTest import GuiShareTest
@@ -14,6 +15,7 @@ class LocalShareModeUnReadableFileTest(unittest.TestCase, GuiShareTest):
def tearDownClass(cls):
GuiShareTest.tear_down()
+ @pytest.mark.gui
def test_gui(self):
self.run_all_common_setup_tests()
self.run_all_share_mode_unreadable_file_tests()
diff --git a/tests/onionshare_790_cancel_on_second_share_test.py b/tests/onionshare_790_cancel_on_second_share_test.py
index b144edf3..4b7673bb 100644
--- a/tests/onionshare_790_cancel_on_second_share_test.py
+++ b/tests/onionshare_790_cancel_on_second_share_test.py
@@ -9,7 +9,7 @@ class ShareModeCancelSecondShareTest(unittest.TestCase, TorGuiShareTest):
@classmethod
def setUpClass(cls):
test_settings = {
- "close_after_first_download": True
+ "close_after_first_download": True
}
cls.gui = TorGuiShareTest.set_up(test_settings)
@@ -17,6 +17,7 @@ class ShareModeCancelSecondShareTest(unittest.TestCase, TorGuiShareTest):
def tearDownClass(cls):
TorGuiShareTest.tear_down()
+ @pytest.mark.gui
@pytest.mark.tor
def test_gui(self):
self.run_all_common_setup_tests()
diff --git a/tests/onionshare_receive_mode_upload_public_mode_test.py b/tests/onionshare_receive_mode_upload_public_mode_test.py
index 275e5953..3c733f0a 100644
--- a/tests/onionshare_receive_mode_upload_public_mode_test.py
+++ b/tests/onionshare_receive_mode_upload_public_mode_test.py
@@ -17,6 +17,7 @@ class ReceiveModeTest(unittest.TestCase, TorGuiReceiveTest):
def tearDownClass(cls):
TorGuiReceiveTest.tear_down()
+ @pytest.mark.gui
@pytest.mark.tor
def test_gui(self):
self.run_all_common_setup_tests()
diff --git a/tests/onionshare_receive_mode_upload_test.py b/tests/onionshare_receive_mode_upload_test.py
index f9914659..493cacc7 100644
--- a/tests/onionshare_receive_mode_upload_test.py
+++ b/tests/onionshare_receive_mode_upload_test.py
@@ -16,6 +16,7 @@ class ReceiveModeTest(unittest.TestCase, TorGuiReceiveTest):
def tearDownClass(cls):
TorGuiReceiveTest.tear_down()
+ @pytest.mark.gui
@pytest.mark.tor
def test_gui(self):
self.run_all_common_setup_tests()
diff --git a/tests/onionshare_share_mode_cancel_share_test.py b/tests/onionshare_share_mode_cancel_share_test.py
index 5f4d6fb3..ed28ddd7 100644
--- a/tests/onionshare_share_mode_cancel_share_test.py
+++ b/tests/onionshare_share_mode_cancel_share_test.py
@@ -15,6 +15,7 @@ class ShareModeCancelTest(unittest.TestCase, TorGuiShareTest):
def tearDownClass(cls):
TorGuiShareTest.tear_down()
+ @pytest.mark.gui
@pytest.mark.tor
def test_gui(self):
self.run_all_common_setup_tests()
diff --git a/tests/onionshare_share_mode_download_public_mode_test.py b/tests/onionshare_share_mode_download_public_mode_test.py
index 672603ce..eb9adb1e 100644
--- a/tests/onionshare_share_mode_download_public_mode_test.py
+++ b/tests/onionshare_share_mode_download_public_mode_test.py
@@ -16,6 +16,7 @@ class ShareModePublicModeTest(unittest.TestCase, TorGuiShareTest):
def tearDownClass(cls):
TorGuiShareTest.tear_down()
+ @pytest.mark.gui
@pytest.mark.tor
def test_gui(self):
self.run_all_common_setup_tests()
diff --git a/tests/onionshare_share_mode_download_stay_open_test.py b/tests/onionshare_share_mode_download_stay_open_test.py
index e7e64083..93a41f1f 100644
--- a/tests/onionshare_share_mode_download_stay_open_test.py
+++ b/tests/onionshare_share_mode_download_stay_open_test.py
@@ -16,6 +16,7 @@ class ShareModeStayOpenTest(unittest.TestCase, TorGuiShareTest):
def tearDownClass(cls):
TorGuiShareTest.tear_down()
+ @pytest.mark.gui
@pytest.mark.tor
def test_gui(self):
self.run_all_common_setup_tests()
diff --git a/tests/onionshare_share_mode_download_test.py b/tests/onionshare_share_mode_download_test.py
index 7d414e5d..ac3dee76 100644
--- a/tests/onionshare_share_mode_download_test.py
+++ b/tests/onionshare_share_mode_download_test.py
@@ -15,6 +15,7 @@ class ShareModeTest(unittest.TestCase, TorGuiShareTest):
def tearDownClass(cls):
TorGuiShareTest.tear_down()
+ @pytest.mark.gui
@pytest.mark.tor
def test_gui(self):
self.run_all_common_setup_tests()
diff --git a/tests/onionshare_share_mode_persistent_test.py b/tests/onionshare_share_mode_persistent_test.py
index 86b61a81..13588a68 100644
--- a/tests/onionshare_share_mode_persistent_test.py
+++ b/tests/onionshare_share_mode_persistent_test.py
@@ -20,6 +20,7 @@ class ShareModePersistentSlugTest(unittest.TestCase, TorGuiShareTest):
def tearDownClass(cls):
TorGuiShareTest.tear_down()
+ @pytest.mark.gui
@pytest.mark.tor
def test_gui(self):
self.run_all_common_setup_tests()
diff --git a/tests/onionshare_share_mode_stealth_test.py b/tests/onionshare_share_mode_stealth_test.py
index b16669e6..bb9114a6 100644
--- a/tests/onionshare_share_mode_stealth_test.py
+++ b/tests/onionshare_share_mode_stealth_test.py
@@ -17,6 +17,7 @@ class ShareModeStealthTest(unittest.TestCase, TorGuiShareTest):
def tearDownClass(cls):
TorGuiShareTest.tear_down()
+ @pytest.mark.gui
@pytest.mark.tor
def test_gui(self):
self.run_all_common_setup_tests()
diff --git a/tests/onionshare_share_mode_timer_test.py b/tests/onionshare_share_mode_timer_test.py
index a13d2d80..7f636a71 100644
--- a/tests/onionshare_share_mode_timer_test.py
+++ b/tests/onionshare_share_mode_timer_test.py
@@ -17,6 +17,7 @@ class ShareModeTimerTest(unittest.TestCase, TorGuiShareTest):
def tearDownClass(cls):
TorGuiShareTest.tear_down()
+ @pytest.mark.gui
@pytest.mark.tor
def test_gui(self):
self.run_all_common_setup_tests()
diff --git a/tests/onionshare_share_mode_tor_connection_killed_test.py b/tests/onionshare_share_mode_tor_connection_killed_test.py
index 62513a12..cf48df3d 100644
--- a/tests/onionshare_share_mode_tor_connection_killed_test.py
+++ b/tests/onionshare_share_mode_tor_connection_killed_test.py
@@ -11,6 +11,7 @@ class ShareModeTorConnectionKilledTest(unittest.TestCase, TorGuiShareTest):
}
cls.gui = TorGuiShareTest.set_up(test_settings)
+ @pytest.mark.gui
@pytest.mark.tor
def test_gui(self):
self.run_all_common_setup_tests()
diff --git a/tests/onionshare_share_mode_v2_onion_test.py b/tests/onionshare_share_mode_v2_onion_test.py
index c932abf9..18f5f058 100644
--- a/tests/onionshare_share_mode_v2_onion_test.py
+++ b/tests/onionshare_share_mode_v2_onion_test.py
@@ -16,6 +16,7 @@ class ShareModeV2OnionTest(unittest.TestCase, TorGuiShareTest):
def tearDownClass(cls):
TorGuiShareTest.tear_down()
+ @pytest.mark.gui
@pytest.mark.tor
def test_gui(self):
self.run_all_common_setup_tests()