mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-16 05:12:16 -04:00
Standardise all shutdown_timer, shutdown_timeout, timeout attributes as 'autostop_timer'
This commit is contained in:
parent
49285e047c
commit
c411e8d61a
65 changed files with 573 additions and 573 deletions
|
@ -77,11 +77,11 @@ class SettingsGuiBaseTest(object):
|
|||
QtTest.QTest.mouseClick(self.gui.public_mode_checkbox, QtCore.Qt.LeftButton, pos=QtCore.QPoint(2,self.gui.public_mode_checkbox.height()/2))
|
||||
self.assertTrue(self.gui.public_mode_checkbox.isChecked())
|
||||
|
||||
# shutdown timer is off
|
||||
self.assertFalse(self.gui.shutdown_timeout_checkbox.isChecked())
|
||||
# enable shutdown timer
|
||||
QtTest.QTest.mouseClick(self.gui.shutdown_timeout_checkbox, QtCore.Qt.LeftButton, pos=QtCore.QPoint(2,self.gui.shutdown_timeout_checkbox.height()/2))
|
||||
self.assertTrue(self.gui.shutdown_timeout_checkbox.isChecked())
|
||||
# autostop timer is off
|
||||
self.assertFalse(self.gui.autostop_timer_checkbox.isChecked())
|
||||
# enable autostop timer
|
||||
QtTest.QTest.mouseClick(self.gui.autostop_timer_checkbox, QtCore.Qt.LeftButton, pos=QtCore.QPoint(2,self.gui.autostop_timer_checkbox.height()/2))
|
||||
self.assertTrue(self.gui.autostop_timer_checkbox.isChecked())
|
||||
|
||||
# legacy mode checkbox and related widgets
|
||||
if self.gui.onion.is_authenticated():
|
||||
|
@ -222,7 +222,7 @@ class SettingsGuiBaseTest(object):
|
|||
data = json.load(f)
|
||||
|
||||
self.assertTrue(data["public_mode"])
|
||||
self.assertTrue(data["shutdown_timeout"])
|
||||
self.assertTrue(data["autostop_timer"])
|
||||
|
||||
if self.gui.onion.is_authenticated():
|
||||
if self.gui.onion.supports_v3_onions:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue