mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-29 01:06:16 -05:00
fix stealth test. Remove tor connection killed test, because it doesn't work like this in 'automatic' connection mode which we need for Mac/Windows testing
This commit is contained in:
parent
e31a424a4d
commit
46bec2f261
@ -149,10 +149,3 @@ class TorGuiBaseTest(GuiBaseTest):
|
||||
def hidserv_auth_string(self):
|
||||
'''Test the validity of the HidservAuth string'''
|
||||
self.assertRegex(self.gui.app.auth_string, r'HidServAuth %s [a-zA-Z1-9]' % self.gui.app.onion_host)
|
||||
|
||||
# Miscellaneous tests
|
||||
def tor_killed_statusbar_message_shown(self, mode):
|
||||
'''Test that the status bar message shows Tor was disconnected'''
|
||||
self.gui.app.onion.cleanup(stop_tor=True)
|
||||
QtTest.QTest.qWait(2500)
|
||||
self.assertTrue(mode.status_bar.currentMessage(), strings._('gui_tor_connection_lost'))
|
||||
|
@ -19,18 +19,10 @@ class ShareModeStealthTest(unittest.TestCase, TorGuiShareTest):
|
||||
|
||||
@pytest.mark.run(after='test_run_all_common_setup_tests')
|
||||
@pytest.mark.tor
|
||||
def test_run_share_mode_setup_tests(self):
|
||||
def test_run_stealth_mode_tests(self):
|
||||
self.run_all_share_mode_setup_tests()
|
||||
self.run_all_share_mode_started_tests(False)
|
||||
|
||||
@pytest.mark.run(after='test_run_share_mode_setup_tests')
|
||||
@pytest.mark.tor
|
||||
def test_copy_have_hidserv_auth_button(self):
|
||||
self.copy_have_hidserv_auth_button(self.gui.share_mode)
|
||||
|
||||
@pytest.mark.run(after='test_run_share_mode_setup_tests')
|
||||
@pytest.mark.tor
|
||||
def test_hidserv_auth_string(self):
|
||||
self.hidserv_auth_string()
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
@ -1,41 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
import pytest
|
||||
import unittest
|
||||
|
||||
from .TorGuiShareTest import TorGuiShareTest
|
||||
|
||||
class ShareModeTorConnectionKilledTest(unittest.TestCase, TorGuiShareTest):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
test_settings = {
|
||||
}
|
||||
cls.gui = TorGuiShareTest.set_up(test_settings, 'ShareModeTorConnectionKilledTest')
|
||||
|
||||
@pytest.mark.tor
|
||||
def test_run_all_common_setup_tests(self):
|
||||
self.run_all_common_setup_tests()
|
||||
|
||||
@pytest.mark.run(after='test_run_all_common_setup_tests')
|
||||
@pytest.mark.tor
|
||||
def test_run_share_mode_setup_tests(self):
|
||||
self.run_all_share_mode_setup_tests()
|
||||
self.run_all_share_mode_started_tests(False)
|
||||
|
||||
@pytest.mark.run(after='test_run_share_mode_setup_tests')
|
||||
@pytest.mark.tor
|
||||
def test_tor_killed_statusbar_message_shown(self):
|
||||
self.tor_killed_statusbar_message_shown(self.gui.share_mode)
|
||||
|
||||
@pytest.mark.run(after='test_tor_killed_statusbar_message_shown')
|
||||
@pytest.mark.tor
|
||||
def test_server_is_stopped(self):
|
||||
self.server_is_stopped(self.gui.share_mode, False)
|
||||
|
||||
@pytest.mark.run(after='test_tor_killed_statusbar_message_shown')
|
||||
@pytest.mark.tor
|
||||
def test_web_service_is_stopped(self):
|
||||
self.web_service_is_stopped()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
Loading…
Reference in New Issue
Block a user