1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-29 02:48:18 +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 58158375d1
commit fdde77868a

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