mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 06:48:16 +00:00
tests: enable test_apply_settings, test_apply_settings_passphrase for t2
This commit is contained in:
parent
db827bfe01
commit
4979c296b7
@ -21,7 +21,6 @@ from .common import *
|
|||||||
from trezorlib import messages as proto
|
from trezorlib import messages as proto
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip_t2
|
|
||||||
class TestMsgApplysettings(TrezorTest):
|
class TestMsgApplysettings(TrezorTest):
|
||||||
|
|
||||||
def test_apply_settings(self):
|
def test_apply_settings(self):
|
||||||
@ -33,10 +32,13 @@ class TestMsgApplysettings(TrezorTest):
|
|||||||
proto.ButtonRequest(),
|
proto.ButtonRequest(),
|
||||||
proto.Success(),
|
proto.Success(),
|
||||||
proto.Features()])
|
proto.Features()])
|
||||||
|
if self.client.features.major_version >= 2:
|
||||||
|
self.client.expected_responses.pop(0) # skip PinMatrixRequest
|
||||||
self.client.apply_settings(label='new label')
|
self.client.apply_settings(label='new label')
|
||||||
|
|
||||||
assert self.client.features.label == 'new label'
|
assert self.client.features.label == 'new label'
|
||||||
|
|
||||||
|
@pytest.mark.skip_t2
|
||||||
def test_invalid_language(self):
|
def test_invalid_language(self):
|
||||||
self.setup_mnemonic_pin_passphrase()
|
self.setup_mnemonic_pin_passphrase()
|
||||||
assert self.client.features.language == 'english'
|
assert self.client.features.language == 'english'
|
||||||
@ -60,6 +62,8 @@ class TestMsgApplysettings(TrezorTest):
|
|||||||
proto.ButtonRequest(),
|
proto.ButtonRequest(),
|
||||||
proto.Success(),
|
proto.Success(),
|
||||||
proto.Features()])
|
proto.Features()])
|
||||||
|
if self.client.features.major_version >= 2:
|
||||||
|
self.client.expected_responses.pop(0) # skip PinMatrixRequest
|
||||||
self.client.apply_settings(use_passphrase=True)
|
self.client.apply_settings(use_passphrase=True)
|
||||||
|
|
||||||
assert self.client.features.passphrase_protection is True
|
assert self.client.features.passphrase_protection is True
|
||||||
@ -80,6 +84,7 @@ class TestMsgApplysettings(TrezorTest):
|
|||||||
|
|
||||||
assert self.client.features.passphrase_protection is True
|
assert self.client.features.passphrase_protection is True
|
||||||
|
|
||||||
|
@pytest.mark.skip_t2
|
||||||
def test_apply_homescreen(self):
|
def test_apply_homescreen(self):
|
||||||
self.setup_mnemonic_pin_passphrase()
|
self.setup_mnemonic_pin_passphrase()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user