remove more public_mode stuff in receive mode test

This commit is contained in:
Miguel Jacq 2021-08-27 16:43:00 +10:00
parent 84b5f98612
commit 60d3564a9b
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -98,12 +98,6 @@ class TestReceive(GuiBaseTest):
self.assertTrue(exists)
def try_without_auth_in_non_public_mode(self, tab):
r = requests.post(f"http://127.0.0.1:{tab.app.port}/upload")
self.assertEqual(r.status_code, 401)
r = requests.get(f"http://127.0.0.1:{tab.app.port}/close")
self.assertEqual(r.status_code, 401)
# 'Grouped' tests follow from here
def run_all_receive_mode_setup_tests(self, tab):
@ -123,8 +117,6 @@ class TestReceive(GuiBaseTest):
def run_all_receive_mode_tests(self, tab):
"""Submit files and messages in receive mode and stop the share"""
self.run_all_receive_mode_setup_tests(tab)
if not tab.settings.get("general", "public"):
self.try_without_auth_in_non_public_mode(tab)
self.upload_file(tab, self.tmpfile_test, "test.txt")
self.history_widgets_present(tab)
self.counter_incremented(tab, 1)