1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-23 16:08:17 +00:00
trezor-firmware/trezorlib/tests
matejcik 06927e003e trezorlib: get rid of TextUIMixin
This also moves DebugLinkMixin to debuglink.py and converts the mixin to
a subclass of TrezorClient (which is finally becoming a
reasonable-looking class). This takes advantage of the new UI protocol
and is ready for further improvements, namely, queuing input for tests
that require swipes.

The ui.py module contains a Click-based implementation of the UI
protocol. Use of callback_* methods has been limited and will probably
be cleaned up further (The contract has changed so we'll try to make
third party code fail noisily. It is unclear whether a backwards
compatible approach will be possible).

Furthermore, device.recovery() now takes a callback as an argument. This
way we can get rid of WordRequest callbacks, which are only used in the
recovery flow.
2018-10-10 13:15:28 +02:00
..
device_tests trezorlib: get rid of TextUIMixin 2018-10-10 13:15:28 +02:00
support style: apply black/isort 2018-08-13 18:22:19 +02:00
txcache tx_api: update to assume "/api" path again, let blockHash request be 2018-09-03 14:59:29 +02:00
unit_tests style: uppercase hex constants to conform with black 18.9b0 style 2018-10-01 14:01:33 +02:00
__init__.py tests: Move to trezorlib.tests 2017-12-19 13:16:22 +01:00