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

@ -303,6 +303,11 @@ class GuiBaseTest(object):
# We should have timed out now
self.assertEqual(mode.server_status.status, 0)
# Hack to close an Alert dialog that would otherwise block tests
def accept_dialog(self):
window = self.gui.qtapp.activeWindow()
if window:
window.close()
# 'Grouped' tests follow from here