mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-15 01:26:01 -04:00
Load onionshare_cli from source tree instead of pip dependency, and start making tests work with PySide2
This commit is contained in:
parent
415618b74a
commit
79100f050c
12 changed files with 261 additions and 201 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue