From 50447de8781599f96e45a0987c9eca593a0a44bb Mon Sep 17 00:00:00 2001 From: matejcik Date: Mon, 25 Nov 2024 11:33:40 +0100 Subject: [PATCH] chore(tests): fix deprecation warning --- tests/click_tests/test_autolock.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/click_tests/test_autolock.py b/tests/click_tests/test_autolock.py index 542d752754..e841d60f0c 100644 --- a/tests/click_tests/test_autolock.py +++ b/tests/click_tests/test_autolock.py @@ -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)