mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-29 02:48:18 +00:00
test: fix legacy test_firmware_upgrades device tests
[no changelog]
This commit is contained in:
parent
883c85436d
commit
c3aaebf2c5
@ -137,11 +137,11 @@ def test_storage_upgrade_progressive(gen: str, tags: List[str]):
|
||||
assert client.features.initialized
|
||||
assert client.features.label == LABEL
|
||||
client.use_pin_sequence([PIN])
|
||||
assert btc.get_address(client, "Bitcoin", PATH) == ADDRESS
|
||||
assert btc.get_address(client.get_session(), "Bitcoin", PATH) == ADDRESS
|
||||
|
||||
with EmulatorWrapper(gen, tags[0]) as emu:
|
||||
debuglink.load_device_by_mnemonic(
|
||||
emu.client,
|
||||
emu.client.get_management_session(),
|
||||
mnemonic=MNEMONIC,
|
||||
pin=PIN,
|
||||
passphrase_protection=False,
|
||||
@ -171,10 +171,7 @@ def test_upgrade_wipe_code(gen: str, tag: str):
|
||||
assert client.features.initialized
|
||||
assert client.features.label == LABEL
|
||||
client.use_pin_sequence([PIN])
|
||||
assert (
|
||||
btc.get_address(client.get_session(passphrase=""), "Bitcoin", PATH)
|
||||
== ADDRESS
|
||||
)
|
||||
assert btc.get_address(client.get_session(), "Bitcoin", PATH) == ADDRESS
|
||||
|
||||
with EmulatorWrapper(gen, tag) as emu:
|
||||
debuglink.load_device_by_mnemonic(
|
||||
@ -205,7 +202,7 @@ def test_upgrade_wipe_code(gen: str, tag: str):
|
||||
exceptions.TrezorFailure,
|
||||
match="The new PIN must be different from your wipe code",
|
||||
):
|
||||
return device.change_pin(emu.client)
|
||||
return device.change_pin(session)
|
||||
|
||||
|
||||
@for_all("legacy")
|
||||
|
Loading…
Reference in New Issue
Block a user