1
0
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:
M1nd3r 2025-03-28 15:15:09 +01:00
parent 5a68ee4f77
commit ea3519cf93

View File

@ -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)