1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-03 04:58:25 +00:00

test: fix test_msg_wipedevice locking in test_autolock_not_retained

[no changelog]
This commit is contained in:
M1nd3r 2024-11-28 13:02:25 +01:00
parent 75803e41da
commit 1da4f17b39

View File

@ -43,13 +43,13 @@ def test_wipe_device(client: Client):
@pytest.mark.setup_client(pin=PIN4)
def test_autolock_not_retained(client: Client):
session = client.get_session()
def test_autolock_not_retained(session: Session):
client = session.client
with client:
client.use_pin_sequence([PIN4])
device.apply_settings(session, auto_lock_delay_ms=10_000)
assert client.features.auto_lock_delay_ms == 10_000
assert session.features.auto_lock_delay_ms == 10_000
device.wipe(session)
client = client.get_new_client()