mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-10 10:25:03 -04:00
Add better workaround for blocking QDialogs. Add unreadable file test and reinstate tor connection killed test
This commit is contained in:
parent
054e5c0aee
commit
63ae7c0d51
7 changed files with 108 additions and 10 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue