1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 14:58:09 +00:00
trezor-firmware/python/tests
matejcik a58823cc0c refactor(python): rework trezorlib protobuf codec
API-compatibility with the original one is retained.

Now that we don't need to keep code parity with core, we could do some
changes that make life easier.

All generated classes are now in one file. This makes github diffs more
readable, at the cost of somewhat complicating inspecting individual
classes; however, that is something we shouldn't be doing anyway.

Enums are now implemented as enum.IntEnum.

The original class-level FIELDS member was restored.

Each field is now defined via protobuf.Field, which is easier to work
with in the codec, AND we're not stuffing defaults and flags into the
same field.
2021-06-08 09:55:19 +02:00
..
test_btc.py python: move json_to_tx to btc.from_json, add test cases 2020-03-26 11:30:06 +01:00
test_cosi.py python/cosi: improve API 2020-01-20 17:32:58 +01:00
test_nem.py python: restructure package 2019-08-12 12:57:25 +02:00
test_protobuf_encoding.py refactor(python): rework trezorlib protobuf codec 2021-06-08 09:55:19 +02:00
test_protobuf_misc.py refactor(python): rework trezorlib protobuf codec 2021-06-08 09:55:19 +02:00
test_stellar.py python: fix encoding errors in Stellar 2020-03-02 16:01:15 +01:00
test_tools.py fix(python): append checksum to descriptors (#1445) 2021-02-05 17:46:02 +01:00
test_transport.py python: restructure package 2019-08-12 12:57:25 +02:00