aboutsummaryrefslogtreecommitdiff
path: root/desktop/tests/test_gui_receive.py
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2020-10-14 20:17:08 -0700
committerMicah Lee <micah@micahflee.com>2020-10-14 20:17:08 -0700
commit79100f050c216f03301d34529c2f6bc618e06304 (patch)
treebe9ebd905d0994f8f5d202106c868bf4c099fffd /desktop/tests/test_gui_receive.py
parent415618b74a21819fef35d1f0c591136c402dbc24 (diff)
downloadonionshare-79100f050c216f03301d34529c2f6bc618e06304.tar.gz
onionshare-79100f050c216f03301d34529c2f6bc618e06304.zip
Load onionshare_cli from source tree instead of pip dependency, and start making tests work with PySide2
Diffstat (limited to 'desktop/tests/test_gui_receive.py')
-rw-r--r--desktop/tests/test_gui_receive.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/tests/test_gui_receive.py b/desktop/tests/test_gui_receive.py
index bc50fb4d..848b2f11 100644
--- a/desktop/tests/test_gui_receive.py
+++ b/desktop/tests/test_gui_receive.py
@@ -19,7 +19,7 @@ class TestReceive(GuiBaseTest):
"""Test that we can upload the file"""
# Wait 2 seconds to make sure the filename, based on timestamp, isn't accidentally reused
- QtTest.QTest.qWait(2000)
+ QtTest.QTest.qWait(2000, self.gui.qtapp)
files = {"file[]": open(file_to_upload, "rb")}
url = f"http://127.0.0.1:{tab.app.port}/upload"
@@ -46,7 +46,7 @@ class TestReceive(GuiBaseTest):
),
)
- QtTest.QTest.qWait(1000)
+ QtTest.QTest.qWait(1000, self.gui.qtapp)
# Make sure the file is within the last 10 seconds worth of fileames
exists = False
@@ -70,7 +70,7 @@ class TestReceive(GuiBaseTest):
def upload_file_should_fail(self, tab):
"""Test that we can't upload the file when permissions are wrong, and expected content is shown"""
- QtTest.QTest.qWait(1000)
+ QtTest.QTest.qWait(1000, self.gui.qtapp)
files = {"file[]": open(self.tmpfile_test, "rb")}
url = f"http://127.0.0.1:{tab.app.port}/upload"