From 7f335efaa3bca15d8cfb59cdda17fe1a0059db1f Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Thu, 13 Dec 2018 21:15:18 -0800 Subject: [PATCH] Always pass in both is_authenticated and supports_v3_onions to OnionStub --- tests/SettingsGuiBaseTest.py | 2 +- tests/local_onionshare_settings_dialog_no_tor_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/SettingsGuiBaseTest.py b/tests/SettingsGuiBaseTest.py index aea19c68..00056219 100644 --- a/tests/SettingsGuiBaseTest.py +++ b/tests/SettingsGuiBaseTest.py @@ -12,7 +12,7 @@ from onionshare_gui.settings_dialog import SettingsDialog class OnionStub(object): - def __init__(self, is_authenticated, supports_v3_onions=False): + def __init__(self, is_authenticated, supports_v3_onions): self._is_authenticated = is_authenticated self.supports_v3_onions = supports_v3_onions diff --git a/tests/local_onionshare_settings_dialog_no_tor_test.py b/tests/local_onionshare_settings_dialog_no_tor_test.py index 9519f77e..f01e049d 100644 --- a/tests/local_onionshare_settings_dialog_no_tor_test.py +++ b/tests/local_onionshare_settings_dialog_no_tor_test.py @@ -15,7 +15,7 @@ class SettingsGuiTest(unittest.TestCase, SettingsGuiBaseTest): SettingsGuiBaseTest.tear_down() def test_gui_no_tor(self): - self.gui.onion = OnionStub(False) + self.gui.onion = OnionStub(False, False) self.gui.reload_settings() self.run_settings_gui_tests()