mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-17 20:08:12 +00:00
fix(tests): correctly check that backup flow was aborted
This commit is contained in:
parent
fbc2c828ec
commit
d4423b3569
@ -117,6 +117,7 @@ def test_abort(client: Client):
|
|||||||
device.recover(client, pin_protection=False, label="label")
|
device.recover(client, pin_protection=False, label="label")
|
||||||
client.init_device()
|
client.init_device()
|
||||||
assert client.features.initialized is False
|
assert client.features.initialized is False
|
||||||
|
assert client.features.recovery_status is messages.RecoveryStatus.Nothing
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.setup_client(uninitialized=True)
|
@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")
|
device.recover(client, pin_protection=False, label="label")
|
||||||
client.init_device()
|
client.init_device()
|
||||||
assert client.features.initialized is False
|
assert client.features.initialized is False
|
||||||
|
assert client.features.recovery_status is messages.RecoveryStatus.Nothing
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.setup_client(uninitialized=True)
|
@pytest.mark.setup_client(uninitialized=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user