mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-09 18:05:05 -04:00
Always pass in both is_authenticated and supports_v3_onions to OnionStub
This commit is contained in:
parent
dc24b5ecd3
commit
7f335efaa3
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue