Load onionshare_cli from source tree instead of pip dependency, and start making tests work with PySide2

This commit is contained in:
Micah Lee 2020-10-14 20:17:08 -07:00
parent 415618b74a
commit 79100f050c
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
12 changed files with 261 additions and 201 deletions

View file

@ -25,7 +25,7 @@ class TestWebsite(GuiBaseTest):
),
)
QtTest.QTest.qWait(500)
QtTest.QTest.qWait(500, self.gui.qtapp)
self.assertTrue("This is a test website hosted by OnionShare" in r.text)
def check_csp_header(self, tab):
@ -41,7 +41,7 @@ class TestWebsite(GuiBaseTest):
),
)
QtTest.QTest.qWait(500)
QtTest.QTest.qWait(500, self.gui.qtapp)
if tab.settings.get("website", "disable_csp"):
self.assertFalse("Content-Security-Policy" in r.headers)
else: