1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-19 08:39:03 +00:00

fixup! test: update persistence tests

This commit is contained in:
M1nd3r 2025-03-25 10:45:29 +01:00
parent cce52ae010
commit 24a0723010

View File

@ -17,7 +17,6 @@
import pytest
from trezorlib import device, messages
from trezorlib.client import ProtocolVersion
from trezorlib.debuglink import DebugLink, LayoutType
from trezorlib.messages import RecoveryStatus
@ -103,6 +102,7 @@ def test_recovery_single_reset(core_emulator: Emulator):
assert features.recovery_status == RecoveryStatus.Nothing
# TODO add protocol pytest marker - run test only on Protocol_V1
@core_only
def test_recovery_on_old_wallet(core_emulator: Emulator):
"""Check that the recovery workflow started on a disconnected device can survive
@ -158,8 +158,7 @@ def test_recovery_on_old_wallet(core_emulator: Emulator):
layout = debug.read_layout()
# while keyboard is open, hit the device with Initialize/GetFeatures
if device_handler.client.protocol_version == ProtocolVersion.V1:
device_handler.client.get_seedless_session().call(messages.Initialize())
device_handler.client.get_seedless_session().call(messages.Initialize())
device_handler.client.refresh_features()
# try entering remaining 19 words