Pavol Rusnak
a1ba9db744
tests: re-enable Decred test for T2
2018-10-10 13:44:36 +02:00
Matheus Degiovani
688e885903
decred: Add sign message tests ( #318 )
2018-10-10 13:35:31 +02:00
matejcik
8618f44272
tests: fix signature of device.recover in expect-to-fail tests
2018-10-10 13:15:28 +02:00
matejcik
ffff11a462
style: isort & autopep
2018-10-10 13:15:28 +02:00
matejcik
886d4f18f4
device_tests: sample usage of input_flow
2018-10-10 13:15:28 +02:00
matejcik
0f7f694914
debug: fix test_msg_applysettings
2018-10-10 13:15:28 +02:00
matejcik
c37bc9c38e
debug: improve infrastructure and expected message reporting
2018-10-10 13:15:28 +02:00
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
Pavol Rusnak
00ebbbb1f3
tests: add test in resetdevice for combination of display_random and no_backup
2018-10-08 15:54:28 +02:00
Pavol Rusnak
cd006026dd
Revert "tests: enable Decred tests for T2"
...
This reverts commit d49a38d80f
.
2018-10-08 14:34:26 +02:00
Pavol Rusnak
d49a38d80f
tests: enable Decred tests for T2
2018-10-06 13:50:37 +02:00
Pavol Rusnak
0f62c817d5
tests: fix warnings in test_msg_resetdevice_nobackup.py
2018-10-04 18:04:37 +02:00
Pavol Rusnak
3424f01ae7
tests: nitpicks in resetdevice_skipbackup, add resetdevice_nobackup
2018-10-04 17:40:53 +02:00
matejcik
dbcc903e52
cardano: fix tests broken after binascii removal
2018-10-02 16:51:53 +02:00
matejcik
4fb3acb029
style: uppercase hex constants to conform with black 18.9b0 style
2018-10-01 14:01:33 +02:00
Pavol Rusnak
7f55847ab1
tests: remove usage of binascii
2018-09-27 16:52:28 +02:00
Tomas Susanka
7e35dfa51e
tests: style fix
2018-09-18 10:36:31 +02:00
ZuluCrypto
0d5fc9bddd
Stellar - failing test when an asset type of native is explicitly specified (instead of just left blank)
2018-09-17 19:13:24 -06:00
Pavol Rusnak
73c8a1c11f
tests: cleanup lisk tests
2018-09-14 12:23:38 +02:00
Pavol Rusnak
3831ddd5a9
tests: fix missing import in lisk tests
2018-09-14 11:37:42 +02:00
Aleksey Popov
144c8c1f5b
lisk: enable tests for t1 (xfail)
2018-09-14 11:26:07 +02:00
Tomas Susanka
f968d68651
tests: tezos is not xfailed anymore
2018-09-13 15:12:42 +02:00
Pavol Rusnak
045c078a50
tests: reduce test_protect_call.py duration from 26 seconds to 5
2018-09-12 20:37:12 +02:00
Pavol Rusnak
6074903d6b
tests: regenerate decred signing tests
...
because decred people wanted to change bip32_name
in 0b0f01fb59
2018-09-12 19:33:15 +02:00
Adrián Matejov
15df848b05
added Tezos support ( #302 )
...
* also added device tests for tezos
Signed-off-by: Adrian Matejov <adrian.matejov@simplestaking.com>
We also pushed signed operations to betanet network and they got accepted.
Here's the list of them
* transaction tz1 http://tzscan.io/ong8MQBX595Ld4dteHCbPqd6uzmEorEft6ZvfiX5vQMX4WHRh7K
* transaction tz2 http://tzscan.io/ooHZ2vbFX1M1fmr9KpLPWQ8r6oZB2RikpGBXsoQSZfbV1hWVjCP
* transaction tz3 http://tzscan.io/op79uLwaFqNB6SgcaAaJtoHFBQk3mL5bC1BQTvYzwX2DVSr8RJG
* origination tz1 http://tzscan.io/ooJg7qXtUjh16AtdSvv5kgaQnxjtAiBysFkG3EaG5qPAuDT1Cym contract http://tzscan.io/KT1VakcExcig27ZAuoLTExgGXtvUsykQSf5R
* origination tz2 http://tzscan.io/opDrUvCGUwKeu86b7GbRLeVzAkyKkdfnV9aSGAzGDLYYS11m6Qr contract http://tzscan.io/KT1LdQeHBSpvvzdRH495qHmtagavZcZ9Z5GW
* origination tz3 http://tzscan.io/opVWtfwvSvHzC6hsSGG31G23Q6nBov8SSvmA2nYXBNc5fWGk3Bg contract http://tzscan.io/KT1VfKfsgKFEfZ5vZUaZNaZyGrQf1gr1MEqr
* delegation tz1 http://tzscan.io/onws37YkYRnUvwYiPqYATZFtBVhBwbS2rdPkQjFGbAfLzt82MGa
* delegation tz2 http://tzscan.io/oocKfbotJwN5Zvmoybhb9LUJ6VhmeS42G2oZHaXQ2mXm98Rzx8r
* delegation tz3 http://tzscan.io/ooFQBcoMzwseJHnFgQ9fEPxAXhtgifuvvEH1CtmyAtnK5R7Drik
* transaction+reveal tz2 http://tzscan.io/ooEyN4FxP8RYh98RJgQxposDUuWHLWT8fUzWawNRCsMGxaNAN9c
* transaction+reveal tz3 http://tzscan.io/ooLaWQzZj1cbkMjZAifV71QCu5bdbMtET5CabrzLWQmnGMMhwmE
2018-09-10 16:40:31 +02:00
matejcik
cb4c366ce9
device_tests: add signtx expected responses generator
2018-09-10 16:02:17 +02:00
Pavol Rusnak
51f178ef1a
tests: cleanup CardanoGetPublicKey test
2018-09-07 19:22:57 +02:00
Tomas Susanka
ea77deeaed
tests: xfail marks removed
2018-09-07 17:21:41 +02:00
Tomas Susanka
5fadcb6b06
tests/ontology redundant swipe removed
...
This bug caused other tests (resetdevice_t2 in particular) to fail. This
is because the test made one more swipe than was supposed to. This led to
a failure in resetdevice tests, which do swipes as well and read data
returned, which did not fit due to the redundant swipe.
2018-09-07 16:33:16 +02:00
Pavol Rusnak
949438f4c5
tests: add script_type test to getpublickey test
2018-09-06 19:05:53 +02:00
Dušan Plavák
bd6bcf7dfa
Add network param to cardano sign tx ( #306 )
2018-09-06 17:25:55 +02:00
Pavol Rusnak
434f279069
use implicit encoding in encode/decode
2018-09-06 16:22:38 +02:00
Matus Zamborsky
21326d3a41
add Ontology support ( #301 )
...
* add Ontology support
Signed-off-by: Matus Zamborsky <zamborsky@gmail.com>
2018-09-06 15:36:44 +02:00
Tomas Susanka
4f572f9e15
cardano: remove sign/verify functions
2018-09-06 14:54:06 +02:00
Dušan Plavák
fb22b894ba
Add cardano support to trezorctl and some tests ( #300 )
...
Add cardano support to trezorctl and some tests
2018-09-05 14:56:31 +02:00
Tomas Susanka
6c15a41514
tests: ripple fix
2018-09-05 10:42:32 +02:00
matejcik
80766ca6b3
tests: xfail Stellar on T1 until we re-enable it
2018-09-04 16:14:29 +02:00
Tomas Susanka
88a02822d3
stellar: public key methods removed
2018-09-03 14:57:10 +02:00
Pavol Rusnak
3c48f906b2
tests: fix eip155 test
2018-09-03 14:53:53 +02:00
HackyMiner
5a4c37d41c
add more eip155 test cases ( #297 )
2018-09-03 14:52:57 +02:00
matejcik
88b50ac2ff
style: add makefile with style targets, final touchups
2018-08-21 16:30:22 +02:00
matejcik
e2d45397d4
device_tests: smarter device selection
...
skips bridge, dies somewhat more cleanly when no device found
2018-08-21 16:06:18 +02:00
matejcik
3d3e9b67b4
style: apply black/isort
2018-08-13 18:22:19 +02:00
matejcik
e336f578af
device_tests: update test_msg_getentropy to new style
2018-08-13 15:49:12 +02:00
matejcik
5259146a0b
style: remove unused imports with autoflake
2018-08-10 15:48:39 +02:00
matejcik
ca608d0a98
flake8: fix complaints (for the last time, hopefully)
2018-08-10 15:24:21 +02:00
matejcik
4b4469b9f4
tests: clean up usage of hardening constants
2018-08-10 14:37:49 +02:00
matejcik
c0ef1ec535
tests: use new API
2018-08-10 14:04:58 +02:00
matejcik
a3d560529c
trezorlib: post-merge updates
2018-08-06 16:15:44 +02:00
matejcik
2bb7088281
Merge branch 'master' into matejcik/client-split
2018-08-06 16:13:04 +02:00