mirror of
https://github.com/SeedSigner/seedsigner.git
synced 2026-10-05 15:08:25 +00:00
Fix inadvertantly persistent test artifacts
This commit is contained in:
@@ -61,7 +61,6 @@ class TestSeedFlows(FlowTest):
|
||||
the SeedOptionsView.
|
||||
"""
|
||||
def test_with_mnemonic(mnemonic):
|
||||
Settings.HOSTNAME = "not seedsigner-os"
|
||||
sequence = [
|
||||
FlowStep(MainMenuView, button_data_selection=MainMenuView.SEEDS),
|
||||
FlowStep(seed_views.SeedsMenuView, is_redirect=True), # When no seeds are loaded it auto-redirects to LoadSeedView
|
||||
@@ -128,7 +127,6 @@ class TestSeedFlows(FlowTest):
|
||||
Most BIP-39 mnemonics should generate an error if entered as Electrum seeds.
|
||||
"""
|
||||
def test_with_mnemonic(mnemonic: list[str], custom_extension: str = None, expects_electrum_seed_is_valid: bool = True):
|
||||
Settings.HOSTNAME = "not seedsigner-os"
|
||||
settings = Settings.get_instance()
|
||||
settings.set_value(SettingsConstants.SETTING__ELECTRUM_SEEDS, SettingsConstants.OPTION__ENABLED)
|
||||
|
||||
|
||||
@@ -30,13 +30,13 @@ class TestViewFlows(FlowTest):
|
||||
"""
|
||||
Basic flow from MainMenuView to PowerOffView
|
||||
"""
|
||||
Settings.HOSTNAME = Settings.SEEDSIGNER_OS
|
||||
self.run_sequence([
|
||||
FlowStep(MainMenuView, screen_return_value=RET_CODE__POWER_BUTTON),
|
||||
FlowStep(PowerOptionsView, button_data_selection=PowerOptionsView.POWER_OFF),
|
||||
FlowStep(PowerOffView), # returns BackStackView
|
||||
FlowStep(PowerOptionsView),
|
||||
])
|
||||
with patch.object(Settings, 'HOSTNAME', return_value=Settings.SEEDSIGNER_OS):
|
||||
self.run_sequence([
|
||||
FlowStep(MainMenuView, screen_return_value=RET_CODE__POWER_BUTTON),
|
||||
FlowStep(PowerOptionsView, button_data_selection=PowerOptionsView.POWER_OFF),
|
||||
FlowStep(PowerOffView), # returns BackStackView
|
||||
FlowStep(PowerOptionsView),
|
||||
])
|
||||
|
||||
|
||||
def test_not_yet_implemented_flow(self):
|
||||
|
||||
Reference in New Issue
Block a user