mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-30 11:52:34 +00:00
fix(tests): fix click test reset slip39 basic
This commit is contained in:
parent
0cf404b573
commit
b87d23613f
@ -19,6 +19,7 @@ from typing import TYPE_CHECKING
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from trezorlib import device, messages
|
from trezorlib import device, messages
|
||||||
|
from trezorlib.client import ProtocolVersion
|
||||||
|
|
||||||
from ..common import EXTERNAL_ENTROPY, MOCK_GET_ENTROPY, generate_entropy
|
from ..common import EXTERNAL_ENTROPY, MOCK_GET_ENTROPY, generate_entropy
|
||||||
from . import reset
|
from . import reset
|
||||||
@ -48,6 +49,7 @@ def test_reset_slip39_basic(
|
|||||||
|
|
||||||
device_handler.run_with_session(
|
device_handler.run_with_session(
|
||||||
device.setup,
|
device.setup,
|
||||||
|
seedless=True,
|
||||||
strength=128,
|
strength=128,
|
||||||
backup_type=messages.BackupType.Slip39_Basic,
|
backup_type=messages.BackupType.Slip39_Basic,
|
||||||
pin_protection=False,
|
pin_protection=False,
|
||||||
@ -55,6 +57,8 @@ def test_reset_slip39_basic(
|
|||||||
entropy_check_count=0,
|
entropy_check_count=0,
|
||||||
_get_entropy=MOCK_GET_ENTROPY,
|
_get_entropy=MOCK_GET_ENTROPY,
|
||||||
)
|
)
|
||||||
|
if device_handler.client.protocol_version is ProtocolVersion.PROTOCOL_V2:
|
||||||
|
reset.confirm_read(debug, middle_r=True)
|
||||||
|
|
||||||
# confirm new wallet
|
# confirm new wallet
|
||||||
reset.confirm_new_wallet(debug)
|
reset.confirm_new_wallet(debug)
|
||||||
|
Loading…
Reference in New Issue
Block a user