Fix bug in OnionStub, the stub used in settings dialog tests

This commit is contained in:
Micah Lee 2018-12-13 21:08:51 -08:00
parent f9e6e6964c
commit dc24b5ecd3
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -14,7 +14,7 @@ from onionshare_gui.settings_dialog import SettingsDialog
class OnionStub(object):
def __init__(self, is_authenticated, supports_v3_onions=False):
self._is_authenticated = is_authenticated
self.supports_v3_onions = True
self.supports_v3_onions = supports_v3_onions
def is_authenticated(self):
return self._is_authenticated