mirror of
https://github.com/SeedSigner/seedsigner.git
synced 2026-10-05 23:18:25 +00:00
* Modifies Views to make button_data and its options available to external caller (FlowTests). * Adds button_data_selection for tighter integration with Views and better human-readability of FlowStep sequences. * Removes the unique recursive run() call in SettingsEntryUpdateSelectionView.
17 lines
772 B
Python
17 lines
772 B
Python
from base import BaseTest
|
|
from seedsigner.models.settings import Settings
|
|
from seedsigner.models.settings_definition import SettingsConstants
|
|
|
|
|
|
class TestSettings(BaseTest):
|
|
|
|
def test_reset_settings(self):
|
|
""" BaseTest.reset_settings() should wipe out any previous Settings changes """
|
|
settings = Settings.get_instance()
|
|
settings.set_value(SettingsConstants.SETTING__PERSISTENT_SETTINGS, SettingsConstants.OPTION__ENABLED)
|
|
assert settings.get_value(SettingsConstants.SETTING__PERSISTENT_SETTINGS) == SettingsConstants.OPTION__ENABLED
|
|
|
|
BaseTest.reset_settings()
|
|
settings = Settings.get_instance()
|
|
assert settings.get_value(SettingsConstants.SETTING__PERSISTENT_SETTINGS) == SettingsConstants.OPTION__DISABLED
|