Make GuiReceiveTest.upload_test use basic auth when identical_files_at_once is True

This commit is contained in:
Micah Lee 2019-05-24 18:07:57 -07:00
parent 15d66c1a6f
commit dc556d89f5
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -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)