Fix receive mode test

This commit is contained in:
Miguel Jacq 2021-05-10 11:42:13 +10:00
parent 2618e89eda
commit 30f53267df
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -297,8 +297,11 @@ class TestReceive(GuiBaseTest):
self.run_all_common_setup_tests() self.run_all_common_setup_tests()
self.run_all_receive_mode_setup_tests(tab) self.run_all_receive_mode_setup_tests(tab)
self.run_all_receive_mode_tests(tab) self.upload_file(tab, self.tmpfile_test, "test.txt")
url = f"http://127.0.0.1:{tab.app.port}/" url = f"http://127.0.0.1:{tab.app.port}/"
self.hit_405(url, expected_resp="OnionShare: 405 Method Not Allowed", data = {'foo':'bar'}, methods = ["put", "post", "delete", "options"]) self.hit_405(url, expected_resp="OnionShare: 405 Method Not Allowed", data = {'foo':'bar'}, methods = ["put", "post", "delete", "options"])
self.server_is_stopped(tab)
self.web_server_is_stopped(tab)
self.server_status_indicator_says_closed(tab)
self.close_all_tabs() self.close_all_tabs()