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:
parent
58158375d1
commit
fdde77868a
@ -43,13 +43,13 @@ def test_wipe_device(client: Client):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.setup_client(pin=PIN4)
|
@pytest.mark.setup_client(pin=PIN4)
|
||||||
def test_autolock_not_retained(client: Client):
|
def test_autolock_not_retained(session: Session):
|
||||||
session = client.get_session()
|
client = session.client
|
||||||
with client:
|
with client:
|
||||||
client.use_pin_sequence([PIN4])
|
client.use_pin_sequence([PIN4])
|
||||||
device.apply_settings(session, auto_lock_delay_ms=10_000)
|
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)
|
device.wipe(session)
|
||||||
client = client.get_new_client()
|
client = client.get_new_client()
|
||||||
|
Loading…
Reference in New Issue
Block a user