mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-24 14:20:57 +00:00
chore(tests): fix deprecation warnings
This commit is contained in:
parent
b1ca6ca848
commit
e5a481ded5
@ -55,13 +55,13 @@ def _get_xpub(client, passphrase=None):
|
||||
"""Get XPUB and check that the appropriate passphrase flow has happened."""
|
||||
if passphrase is not None:
|
||||
expected_responses = [
|
||||
messages.PassphraseRequest(),
|
||||
messages.ButtonRequest(),
|
||||
messages.ButtonRequest(),
|
||||
messages.PublicKey(),
|
||||
messages.PassphraseRequest,
|
||||
messages.ButtonRequest,
|
||||
messages.ButtonRequest,
|
||||
messages.PublicKey,
|
||||
]
|
||||
else:
|
||||
expected_responses = [messages.PublicKey()]
|
||||
expected_responses = [messages.PublicKey]
|
||||
|
||||
with client:
|
||||
client.use_passphrase(passphrase or "")
|
||||
|
Loading…
Reference in New Issue
Block a user