mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
feat(python): add lock() to TrezorClientDebugLink
[no changelog]
This commit is contained in:
parent
6625bbdb6d
commit
d08e61e092
@ -1437,6 +1437,10 @@ class TrezorClientDebugLink(TrezorClient):
|
|||||||
# TODO is this needed?
|
# TODO is this needed?
|
||||||
# self.debug.close()
|
# self.debug.close()
|
||||||
|
|
||||||
|
def lock(self) -> None:
|
||||||
|
s = SessionDebugWrapper(self.get_management_session())
|
||||||
|
s.lock()
|
||||||
|
|
||||||
def get_session(
|
def get_session(
|
||||||
self,
|
self,
|
||||||
passphrase: str | object | None = "",
|
passphrase: str | object | None = "",
|
||||||
|
@ -401,6 +401,7 @@ def client(
|
|||||||
if use_passphrase and isinstance(setup_params["passphrase"], str):
|
if use_passphrase and isinstance(setup_params["passphrase"], str):
|
||||||
_raw_client.use_passphrase(setup_params["passphrase"])
|
_raw_client.use_passphrase(setup_params["passphrase"])
|
||||||
|
|
||||||
|
_raw_client.lock()
|
||||||
# TODO _raw_client.clear_session()
|
# TODO _raw_client.clear_session()
|
||||||
|
|
||||||
with ui_tests.screen_recording(_raw_client, request):
|
with ui_tests.screen_recording(_raw_client, request):
|
||||||
|
Loading…
Reference in New Issue
Block a user