1
0
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:
matejcik 2021-03-08 10:47:46 +01:00 committed by matejcik
parent b1ca6ca848
commit e5a481ded5

View File

@ -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 "")