1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-19 08:39:03 +00:00

fixup! test: update upgrade tests

This commit is contained in:
M1nd3r 2025-03-24 13:40:20 +01:00
parent d1d5679759
commit 7a0f29e26c
2 changed files with 2 additions and 2 deletions

View File

@ -382,7 +382,7 @@ def test_upgrade_shamir_backup(gen: str, tag: Optional[str]):
# Get a passphrase-less and a passphrased address.
address = btc.get_address(session, "Bitcoin", PATH)
if session.protocol_version == ProtocolVersion.PROTOCOL_V1:
if session.protocol_version == ProtocolVersion.V1:
session.call(messages.Initialize(new_session=True))
new_session = emu.client.get_session(passphrase="TREZOR")
address_passphrase = btc.get_address(new_session, "Bitcoin", PATH)

View File

@ -141,7 +141,7 @@ def test_init_device(emulator: Emulator):
btc.get_address(session, "Testnet", parse_path("44h/1h/0h/0/0"))
# in TT < 2.3.0 session_id will only be available after PassphraseStateRequest
session_id = session.id
if session.protocol_version == ProtocolVersion.PROTOCOL_V1:
if session.protocol_version == ProtocolVersion.V1:
session.call(messages.Initialize(session_id=session_id))
btc.get_address(
session,