1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-30 11:28:21 +00:00

chore(tests): fix deprecation warning

This commit is contained in:
matejcik 2024-11-25 11:33:40 +01:00 committed by matejcik
parent ae3d8263b9
commit 50447de878

View File

@ -287,7 +287,7 @@ def test_dryrun_locks_at_number_of_words(device_handler: "BackgroundDeviceHandle
set_autolock_delay(device_handler, 10_000)
debug = device_handler.debuglink()
device_handler.run(device.recover, dry_run=True) # type: ignore
device_handler.run(device.recover, type=messages.RecoveryType.DryRun)
layout = unlock_dry_run(debug)
assert TR.recovery__num_of_words in debug.read_layout().text_content()
@ -319,7 +319,7 @@ def test_dryrun_locks_at_word_entry(device_handler: "BackgroundDeviceHandler"):
set_autolock_delay(device_handler, 10_000)
debug = device_handler.debuglink()
device_handler.run(device.recover, dry_run=True) # type: ignore
device_handler.run(device.recover, type=messages.RecoveryType.DryRun)
unlock_dry_run(debug)
@ -345,7 +345,7 @@ def test_dryrun_enter_word_slowly(device_handler: "BackgroundDeviceHandler"):
set_autolock_delay(device_handler, 10_000)
debug = device_handler.debuglink()
device_handler.run(device.recover, dry_run=True) # type: ignore
device_handler.run(device.recover, type=messages.RecoveryType.DryRun)
unlock_dry_run(debug)