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:
Miguel Jacq 2018-10-14 15:11:57 +11:00
parent e31a424a4d
commit 46bec2f261
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6
3 changed files with 1 additions and 57 deletions

View File

@ -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'))

View File

@ -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__":

View File

@ -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()