diff options
author | Micah Lee <micah@micahflee.com> | 2020-11-27 14:57:49 -0800 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2020-11-27 14:57:49 -0800 |
commit | af5dda0d4a3ad1ed0a0ebdfe32fb20abf9b56162 (patch) | |
tree | bbf11684cd005224b45eda5672ff0a20f778f555 /cli | |
parent | 134611a3253cc61904c10a61d3434c7bed2d2975 (diff) | |
download | onionshare-af5dda0d4a3ad1ed0a0ebdfe32fb20abf9b56162.tar.gz onionshare-af5dda0d4a3ad1ed0a0ebdfe32fb20abf9b56162.zip |
Fix start_onion_service test
Diffstat (limited to 'cli')
-rw-r--r-- | cli/tests/test_cli.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/tests/test_cli.py b/cli/tests/test_cli.py index 99f26547..be71240b 100644 --- a/cli/tests/test_cli.py +++ b/cli/tests/test_cli.py @@ -15,7 +15,7 @@ class MyOnion: @staticmethod def start_onion_service( - self, mode_settings_obj, await_publication=True, save_scheduled_key=False + self, mode, mode_settings_obj, await_publication=True, save_scheduled_key=False ): return "test_service_id.onion" @@ -40,13 +40,13 @@ class TestOnionShare: assert onionshare_obj.local_only is False def test_start_onion_service(self, onionshare_obj, mode_settings_obj): - onionshare_obj.start_onion_service(mode_settings_obj) + onionshare_obj.start_onion_service("share", mode_settings_obj) assert 17600 <= onionshare_obj.port <= 17650 assert onionshare_obj.onion_host == "test_service_id.onion" def test_start_onion_service_local_only(self, onionshare_obj, mode_settings_obj): onionshare_obj.local_only = True - onionshare_obj.start_onion_service(mode_settings_obj) + onionshare_obj.start_onion_service("share", mode_settings_obj) assert onionshare_obj.onion_host == "127.0.0.1:{}".format(onionshare_obj.port) def test_cleanup(self, onionshare_obj, temp_dir_1024, temp_file_1024): |