mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-26 22:37:11 -05:00
Always pass in both is_authenticated and supports_v3_onions to OnionStub
This commit is contained in:
parent
dc24b5ecd3
commit
7f335efaa3
@ -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
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user