Commit Graph

16 Commits

Author SHA1 Message Date
matejcik
6e3018509b refactor(python): rework session-based API
Co-authored-by: M1nd3r <petrsedlacek.km@seznam.cz>
Co-authored-by: Roman Zeyde <roman.zeyde@satoshilabs.com>

[no changelog]
2026-02-03 14:47:31 +01:00
matejcik
4fe6729510 tests: stabilize reseeding
So that the setup sequence of operations doesn't affect randomness
inside the test itself.

This unfortunately causes a massive UI diff, but hopefully that's one of
the last times this happens.

[no changelog]
2026-01-12 22:03:22 +01:00
M1nd3r
78ecfb2caa test(python): adjust tests to session-based trezorlib
Co-authored-by: mmilata <85857+mmilata@users.noreply.github.com>
Co-authored-by: romanz <9900+romanz@users.noreply.github.com>
2025-07-31 20:29:05 +02:00
Roman Zeyde
d0ca0fb9b2 chore(core): fix a small typo
[no changelog]
2025-06-01 14:31:43 +03:00
Martin Milata
a04525c6de feat(core): add Capability.BLE to Features 2025-05-13 10:48:13 +02:00
Martin Milata
48124023d7 feat(core): Add Capability.Translations to Features
[no changelog]
2024-02-29 11:16:05 +00:00
grdddj
9a71ac74c9 chore(tests): add type hints and improve styling in device test files 2022-02-07 14:05:27 +01:00
grdddj
a92d29ddbf chore(tests): removing classes from device test files 2021-12-06 11:15:12 +01:00
matejcik
08d896f2f9 chore(tests): update to kwargs usage and new btc.sign_tx API 2020-09-23 16:00:10 +02:00
matejcik
e585d35f34 python: clarify session and feature management API
init_device() should be used to initialize a session. Reuses existing
session if available.

end_session() explicitly closes any existing session and requests a new
one

lock() enables soft-lock

clear_session() is the equivalent of lock() + end_session()

A new function ensure_unlocked() can be used to open a session and
prompt for PIN and passphrase before further operations.
2020-08-05 16:45:56 +02:00
Tomas Susanka
90d5cdfd5b all: rework passphrase
The `on_device` field is being moved to PassphraseAck, State messages
are removed. Features newly contain `session_id`.
2020-02-07 11:40:58 +00:00
matejcik
56f5f73550 tests: drop TrezorTest class 2019-09-12 14:41:05 +02:00
matejcik
885a21ab36 tests: add missing licence headers 2019-09-10 13:48:51 +02:00
matejcik
2d4b23d64a fixup! tests: convert from self.client to the client fixture 2019-08-29 15:07:50 +02:00
matejcik
e0f55be7a6 tests: convert from self.client to the client fixture 2019-08-29 15:07:50 +02:00
matejcik
b4fa6f2a7f tests: move device tests to top-level 2019-08-12 12:57:25 +02:00