Skip to content

Commit

Permalink
fixup! test(core): don't fetch DebugLinkState by default
Browse files Browse the repository at this point in the history
  • Loading branch information
romanz committed Feb 4, 2025
1 parent 12790ee commit 933fffe
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/upgrade_tests/recovery_old.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import logging
import time
from typing import TYPE_CHECKING

from .. import buttons

LOG = logging.getLogger(__name__)

if TYPE_CHECKING:
from trezorlib.debuglink import DebugLink, LayoutContent

Expand Down Expand Up @@ -39,5 +43,9 @@ def enter_share(debug: "DebugLink", share: str) -> "LayoutContent":
debug.click(buttons.OK)
debug.read_layout(wait=True)
for word in share.split(" "):
layout = _enter_word(debug, word, is_slip39=True)
_enter_word(debug, word, is_slip39=True)

time.sleep(1) # TODO: there must be a better way!
layout = debug.read_layout()
LOG.info("layout: %r", layout.json_str)
return layout

0 comments on commit 933fffe

Please sign in to comment.