mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-03 19:31:02 +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."""
|
"""Get XPUB and check that the appropriate passphrase flow has happened."""
|
||||||
if passphrase is not None:
|
if passphrase is not None:
|
||||||
expected_responses = [
|
expected_responses = [
|
||||||
messages.PassphraseRequest(),
|
messages.PassphraseRequest,
|
||||||
messages.ButtonRequest(),
|
messages.ButtonRequest,
|
||||||
messages.ButtonRequest(),
|
messages.ButtonRequest,
|
||||||
messages.PublicKey(),
|
messages.PublicKey,
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
expected_responses = [messages.PublicKey()]
|
expected_responses = [messages.PublicKey]
|
||||||
|
|
||||||
with client:
|
with client:
|
||||||
client.use_passphrase(passphrase or "")
|
client.use_passphrase(passphrase or "")
|
||||||
|
Loading…
Reference in New Issue
Block a user