1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-17 11:58:13 +00:00

fix(tests): correctly check that backup flow was aborted

This commit is contained in:
matejcik 2024-09-24 11:06:21 +02:00 committed by matejcik
parent fbc2c828ec
commit d4423b3569

View File

@ -117,6 +117,7 @@ def test_abort(client: Client):
device.recover(client, pin_protection=False, label="label")
client.init_device()
assert client.features.initialized is False
assert client.features.recovery_status is messages.RecoveryStatus.Nothing
@pytest.mark.setup_client(uninitialized=True)
@ -130,6 +131,7 @@ def test_abort_between_shares(client: Client):
device.recover(client, pin_protection=False, label="label")
client.init_device()
assert client.features.initialized is False
assert client.features.recovery_status is messages.RecoveryStatus.Nothing
@pytest.mark.setup_client(uninitialized=True)