mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Make GuiReceiveTest.upload_test use basic auth when identical_files_at_once is True
This commit is contained in:
parent
15d66c1a6f
commit
dc556d89f5
@ -15,12 +15,14 @@ class GuiReceiveTest(GuiBaseTest):
|
||||
url = 'http://127.0.0.1:{}/upload'.format(self.gui.app.port)
|
||||
if public_mode:
|
||||
r = requests.post(url, files=files)
|
||||
if identical_files_at_once:
|
||||
# Send a duplicate upload to test for collisions
|
||||
r = requests.post(url, files=files)
|
||||
else:
|
||||
r = requests.post(url, files=files, auth=requests.auth.HTTPBasicAuth('onionshare', self.gui.receive_mode.web.password))
|
||||
|
||||
if identical_files_at_once:
|
||||
# Send a duplicate upload to test for collisions
|
||||
r = requests.post(url, files=files)
|
||||
if identical_files_at_once:
|
||||
# Send a duplicate upload to test for collisions
|
||||
r = requests.post(url, files=files, auth=requests.auth.HTTPBasicAuth('onionshare', self.gui.receive_mode.web.password))
|
||||
|
||||
QtTest.QTest.qWait(2000)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user