Add better workaround for blocking QDialogs. Add unreadable file test and reinstate tor connection killed test

This commit is contained in:
Miguel Jacq 2018-10-17 11:57:21 +11:00
parent dbbc9c0c82
commit c79eedd626
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6
7 changed files with 108 additions and 10 deletions

View file

@ -162,3 +162,12 @@ class TorGuiBaseTest(GuiBaseTest):
def hidserv_auth_string(self):
'''Test the validity of the HidservAuth string'''
self.assertRegex(self.gui.app.auth_string, r'HidServAuth {} [a-zA-Z1-9]'.format(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.c = None
QtTest.QTest.qWait(1000)
self.assertTrue(mode.status_bar.currentMessage(), strings._('gui_tor_connection_lost'))