matejcik
4bc865794f
core: only unlock storage if it is locked (solves determinism issue in tests)
2020-06-04 16:18:46 +02:00
matejcik
0799595b5b
tests: update UI test fixtures
2020-06-04 16:18:46 +02:00
matejcik
70f67883c5
core: fix artifacts in click-based UI tests
2020-06-04 16:18:46 +02:00
matejcik
3c128cde38
tests: fix wait_layout() behavior
2020-06-04 16:18:46 +02:00
matejcik
0c3bbef81b
tests: move autolock tests to a separate file
2020-06-04 16:18:46 +02:00
matejcik
5d823ff5ea
core: use ButtonRequestType.PinEntry for PIN entry
2020-06-04 16:18:46 +02:00
matejcik
e9555a3b0a
tests: rename test_address to get_test_address
...
so that pytest doesn't think it is a testcase
2020-06-04 16:18:46 +02:00
matejcik
e642853767
tests: update UI test fixtures
2020-06-04 16:18:46 +02:00
matejcik
a11ec58eb6
tests: enable auto-lock tests for TT
2020-06-04 16:18:46 +02:00
matejcik
dab41fd680
tests: cleaner way to get the ui parameter
2020-06-04 16:18:46 +02:00
matejcik
88c5ec8d40
tests: update UI test fixtures
2020-06-04 16:18:46 +02:00
matejcik
67c09020ab
tests: fix terminalreporter deprecation warning
2020-06-04 16:18:46 +02:00
matejcik
b4900f2ab9
test: refactor RecoveryDevice test for TT
2020-06-04 16:18:46 +02:00
matejcik
2499a6d6da
tests: refactor T1 changepin test
2020-06-04 16:18:46 +02:00
matejcik
fc6c99c6f9
tests: disable PIN detection, all PIN uses must be explicit
2020-06-04 16:18:46 +02:00
matejcik
4771d2c233
tests: fix test suite for softlock
2020-06-04 16:18:46 +02:00
matejcik
6069173252
python/debuglink: clean out debuglink methods
2020-06-04 16:18:46 +02:00
matejcik
554d8949f5
core: relax path checks on GetPublicKey
2020-05-27 08:56:50 +02:00
Tomas Susanka
9dfc08ca61
core/bitcoin: drop decred_script_version
2020-05-21 19:14:39 +02:00
matejcik
2f665c8f84
core: add exception to GetPublicKey for PSBT master fingerprint ( fixes #999 )
2020-05-21 13:26:53 +02:00
Tomas Susanka
3a3965af9b
tests/bitcoin: test segwit/non-segwit input mixing
2020-05-18 14:31:51 +02:00
matejcik
d5b4a570ff
tests: regenerate UI fixtures
2020-05-15 14:08:29 +02:00
matejcik
29db769185
tests: update test vectors to use correct paths
2020-05-15 14:08:29 +02:00
matejcik
17c4d75b40
tests: rename report_test to testreport so that pytest doesn't think it is a testcase
2020-05-15 14:08:29 +02:00
Tomas Susanka
20d66adddd
core: disable passphrase_always_on_device when turning off passphrase
2020-04-28 14:54:18 +02:00
matejcik
bc926a2dd5
tests: convert signtx tests to use request_* shortcuts for readability
2020-04-25 18:27:29 +02:00
matejcik
feaaaf8973
tests: simplify code of test_msg_signtx
...
Instead of a function generating the expected_responses, introduce
shortcuts (request_input, request_output...) so that the static
expected_responses are more readable.
2020-04-25 18:27:29 +02:00
Tomas Susanka
a0c8f8f00e
tests/signing: add more tests for incorrect script type
2020-04-24 17:19:33 +00:00
matejcik
5885978c83
Merge branch 'release/2020-04'
2020-04-15 15:00:23 +02:00
Andrew Kozlik
e38ced8c05
tests/u2f-hid: Disable strict timing checks in HIDTest and increase receive timeout to avoid failures in CI when emulator is slow to respond.
2020-04-06 09:53:42 +02:00
Tomas Susanka
bf20537f41
core: add option to omit cancel button in HoldToConfirm; add it to reset
2020-03-30 16:00:12 +00:00
matejcik
1b50877545
tests: streamline TrezorFailure exception usage
2020-03-26 11:30:06 +01:00
matejcik
b440ca1ec5
python: drop deprecated name CallException
2020-03-26 11:30:06 +01:00
matejcik
9a330f3475
python: unify protobuf-encoding code paths
...
Protobuf encoding now happens in TrezorClient, and transports get encoded blobs
to (chunkify and) send. This is a better design because transports don't need
to know about protobuf.
It also lays groundwork for sending raw bytes feature (#116 )
This commit also removes all vestiges of ProtocolV2 which was never used and
will probably need to be redesigned from the ground up anyway. The code is
still ready for protocol flexibility.
2020-03-26 11:30:06 +01:00
matejcik
9d29952a15
python: move out deprecated ckd_public
2020-03-26 11:30:06 +01:00
matejcik
325dae890e
python: completely drop trezorlib.coins and trezorlib.tx_api
2020-03-26 11:30:06 +01:00
matejcik
5a526888cf
python: move json_to_tx to btc.from_json, add test cases
2020-03-26 11:30:06 +01:00
matejcik
b3569a53e6
tests: update tx_cache usages
2020-03-26 11:30:06 +01:00
matejcik
5cd7c72353
tests: rework tx cache
...
The cache will no longer add new txes transparently.
To add a transaction, see: ./tests/tx_cache.py --help
2020-03-26 11:30:06 +01:00
Tomas Susanka
ae4f927a45
tests: test incorrect script type
2020-03-20 14:19:31 +00:00
matejcik
da89a17ce5
all: add checks for prev_hash size
2020-03-20 14:19:31 +00:00
Tomas Susanka
71a39bc0d7
legacy: check inputs' and outputs' script types
2020-03-20 14:19:30 +00:00
matejcik
ffdb299c61
all: drop Capricoin support [NO BACKPORT]
2020-03-20 14:19:30 +00:00
matejcik
adea7d6b35
all: make timestamp mandatory on timestamp-enabled coins
2020-03-20 14:19:07 +00:00
matejcik
ed464f3d47
all: ensure expiry, timestamp and extra_data are blocked as appropriate
2020-03-20 14:18:27 +00:00
matejcik
27803ee8c1
all: drop overwintered field from transaction
2020-03-20 14:18:27 +00:00
matejcik
303c05aba7
core/sign_tx: check if prev_tx has enough outputs to match prev_index
2020-03-20 14:17:44 +00:00
Tomas Susanka
1bf08cbb97
tests: add ui fixture for test_attack_change_input test
2020-03-20 14:17:44 +00:00
Andrew Kozlik
c98592050b
tests: Fix multisig input replacement attack to check correct behavior during the signing phase.
2020-03-20 14:17:44 +00:00
Tomas Susanka
350a67d9a7
tests: test multisig input replacement attack
2020-03-20 14:17:44 +00:00