mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-09 06:42:37 -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
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue