mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-04-20 00:59:02 +00:00
fixup! test: update persistence tests
This commit is contained in:
parent
5a68ee4f77
commit
ea3519cf93
@ -45,7 +45,10 @@ def test_abort(core_emulator: Emulator):
|
||||
|
||||
assert features.recovery_status == RecoveryStatus.Nothing
|
||||
|
||||
device_handler.run_with_session(device.recover, pin_protection=False)
|
||||
session = device_handler.client.get_seedless_session()
|
||||
device_handler.run_with_provided_session(
|
||||
session, device.recover, pin_protection=False
|
||||
)
|
||||
|
||||
recovery.confirm_recovery(debug)
|
||||
layout = debug.read_layout()
|
||||
@ -82,7 +85,10 @@ def test_recovery_single_reset(core_emulator: Emulator):
|
||||
assert features.initialized is False
|
||||
assert features.recovery_status == RecoveryStatus.Nothing
|
||||
|
||||
device_handler.run_with_session(device.recover, pin_protection=False)
|
||||
session = device_handler.client.get_seedless_session()
|
||||
device_handler.run_with_provided_session(
|
||||
session, device.recover, pin_protection=False
|
||||
)
|
||||
|
||||
recovery.confirm_recovery(debug)
|
||||
|
||||
@ -130,7 +136,10 @@ def test_recovery_on_old_wallet(core_emulator: Emulator):
|
||||
assert features.recovery_status == RecoveryStatus.Nothing
|
||||
|
||||
# enter recovery mode
|
||||
device_handler.run_with_session(device.recover, pin_protection=False)
|
||||
session = device_handler.client.get_seedless_session()
|
||||
device_handler.run_with_provided_session(
|
||||
session, device.recover, pin_protection=False
|
||||
)
|
||||
|
||||
recovery.confirm_recovery(debug)
|
||||
|
||||
@ -208,7 +217,10 @@ def test_recovery_multiple_resets(core_emulator: Emulator):
|
||||
assert features.recovery_status == RecoveryStatus.Nothing
|
||||
|
||||
# start device and recovery
|
||||
device_handler.run_with_session(device.recover, pin_protection=False)
|
||||
session = device_handler.client.get_seedless_session()
|
||||
device_handler.run_with_provided_session(
|
||||
session, device.recover, pin_protection=False
|
||||
)
|
||||
|
||||
recovery.confirm_recovery(debug)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user