1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-20 09:09:02 +00:00

fixup! chore(tests): adapt testing framework to session based

This commit is contained in:
M1nd3r 2025-03-25 12:19:53 +01:00
parent ef3f429f41
commit 344c62f440

View File

@ -295,7 +295,6 @@ def _client_unlocked(
except Exception:
request.session.shouldstop = "Failed to communicate with Trezor"
pytest.fail("Failed to communicate with Trezor")
_raw_client._seedless_session = _raw_client.get_seedless_session(new_session=True)
# Resetting all the debug events to not be influenced by previous test
_raw_client.debug.reset_debug_events()
@ -340,7 +339,7 @@ def _client_unlocked(
setup_params["passphrase"], str
)
if not setup_params["uninitialized"]:
session = _raw_client.get_seedless_session(new_session=True)
session = _raw_client.get_seedless_session()
debuglink.load_device(
session,
mnemonic=setup_params["mnemonic"], # type: ignore