summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMiguel Jacq <mig@mig5.net>2019-09-03 12:38:20 +1000
committerMiguel Jacq <mig@mig5.net>2019-09-03 12:38:20 +1000
commitcb439743ffe23b2d52356a662dc28f6f3fa605e8 (patch)
tree976e62c030ae5decc5f84b4815f68ca41726179f /tests
parentf6eb80d5b595db7bc48c72357461a0ae86a58f89 (diff)
downloadonionshare-cb439743ffe23b2d52356a662dc28f6f3fa605e8.tar.gz
onionshare-cb439743ffe23b2d52356a662dc28f6f3fa605e8.zip
Check for the (absence of) hyperlink in page markup before we move on to trying to download the individual file
Diffstat (limited to 'tests')
-rw-r--r--tests/GuiShareTest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/GuiShareTest.py b/tests/GuiShareTest.py
index be3f42e3..f8fefe60 100644
--- a/tests/GuiShareTest.py
+++ b/tests/GuiShareTest.py
@@ -105,12 +105,12 @@ class GuiShareTest(GuiBaseTest):
with open(tmp_file.name, 'r') as f:
self.assertEqual('onionshare', f.read())
else:
+ self.assertFalse('a href="/test.txt"' in r.text)
if public_mode:
r = requests.get(download_file_url)
else:
r = requests.get(download_file_url, auth=requests.auth.HTTPBasicAuth('onionshare', self.gui.share_mode.server_status.web.password))
self.assertEqual(r.status_code, 404)
- self.assertFalse('a href="/test.txt"' in r.text)
self.download_share(public_mode)
QtTest.QTest.qWait(2000)