Always pass in both is_authenticated and supports_v3_onions to OnionStub

This commit is contained in:
Micah Lee 2018-12-13 21:15:18 -08:00
parent dc24b5ecd3
commit 7f335efaa3
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
2 changed files with 2 additions and 2 deletions

View File

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

View File

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