mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-17 11:58:13 +00:00
style: fix style problems
This commit is contained in:
parent
3f9e37abb4
commit
a4bd771e3b
@ -106,7 +106,6 @@ def select_number_of_words(
|
|||||||
raise ValueError("Invalid num_of_words")
|
raise ValueError("Invalid num_of_words")
|
||||||
return debug.click(coords)
|
return debug.click(coords)
|
||||||
|
|
||||||
|
|
||||||
if debug.layout_type is LayoutType.TT:
|
if debug.layout_type is LayoutType.TT:
|
||||||
TR.assert_equals(debug.read_layout().text_content(), "recovery__num_of_words")
|
TR.assert_equals(debug.read_layout().text_content(), "recovery__num_of_words")
|
||||||
layout = select_tt()
|
layout = select_tt()
|
||||||
|
@ -21,8 +21,8 @@ import pytest
|
|||||||
from trezorlib import device, messages
|
from trezorlib import device, messages
|
||||||
from trezorlib.debuglink import LayoutType
|
from trezorlib.debuglink import LayoutType
|
||||||
|
|
||||||
from ..common import EXTERNAL_ENTROPY, WITH_MOCK_URANDOM, generate_entropy
|
|
||||||
from .. import translations as TR
|
from .. import translations as TR
|
||||||
|
from ..common import EXTERNAL_ENTROPY, WITH_MOCK_URANDOM, generate_entropy
|
||||||
from . import reset
|
from . import reset
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
@ -74,12 +74,16 @@ def test_backup_slip39_custom(
|
|||||||
groups=[(share_threshold, share_count)],
|
groups=[(share_threshold, share_count)],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# confirm backup configuration
|
# confirm backup configuration
|
||||||
if share_count > 1:
|
if share_count > 1:
|
||||||
TR.assert_template(debug.read_layout().text_content(), "reset__create_x_of_y_multi_share_backup_template")
|
TR.assert_template(
|
||||||
|
debug.read_layout().text_content(),
|
||||||
|
"reset__create_x_of_y_multi_share_backup_template",
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
TR.assert_template(debug.read_layout().text_content(), "backup__info_single_share_backup")
|
TR.assert_template(
|
||||||
|
debug.read_layout().text_content(), "backup__info_single_share_backup"
|
||||||
|
)
|
||||||
reset.confirm_read(debug)
|
reset.confirm_read(debug)
|
||||||
|
|
||||||
# confirm backup intro
|
# confirm backup intro
|
||||||
|
@ -20,8 +20,8 @@ import pytest
|
|||||||
|
|
||||||
from trezorlib import device, messages
|
from trezorlib import device, messages
|
||||||
|
|
||||||
from ..common import WITH_MOCK_URANDOM
|
|
||||||
from .. import translations as TR
|
from .. import translations as TR
|
||||||
|
from ..common import WITH_MOCK_URANDOM
|
||||||
from . import reset
|
from . import reset
|
||||||
from .common import go_next
|
from .common import go_next
|
||||||
|
|
||||||
|
@ -527,7 +527,9 @@ class EthereumFlow:
|
|||||||
if self.client.layout_type is LayoutType.TT:
|
if self.client.layout_type is LayoutType.TT:
|
||||||
# confirm intro
|
# confirm intro
|
||||||
if info:
|
if info:
|
||||||
self.debug.click(buttons.CORNER_BUTTON, )
|
self.debug.click(
|
||||||
|
buttons.CORNER_BUTTON,
|
||||||
|
)
|
||||||
TR.assert_equals_multiple(
|
TR.assert_equals_multiple(
|
||||||
self.debug.read_layout().title(),
|
self.debug.read_layout().title(),
|
||||||
[
|
[
|
||||||
|
Loading…
Reference in New Issue
Block a user