mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
tests: mark altcoin related tests with "altcoin" pytest marker
This commit is contained in:
parent
3467cbe236
commit
fee1ee034b
@ -1,3 +1,4 @@
|
|||||||
|
altcoin
|
||||||
binance
|
binance
|
||||||
capricoin
|
capricoin
|
||||||
cardano
|
cardano
|
||||||
|
@ -11,6 +11,7 @@ BINANCE_ADDRESS_TEST_VECTORS = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.binance
|
@pytest.mark.binance
|
||||||
@pytest.mark.skip_t1 # T1 support is not planned
|
@pytest.mark.skip_t1 # T1 support is not planned
|
||||||
@setup_client(
|
@setup_client(
|
||||||
|
@ -8,6 +8,7 @@ from .conftest import setup_client
|
|||||||
BINANCE_PATH = parse_path("m/44h/714h/0h/0/0")
|
BINANCE_PATH = parse_path("m/44h/714h/0h/0/0")
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.binance
|
@pytest.mark.binance
|
||||||
@pytest.mark.skip_t1 # T1 support is not planned
|
@pytest.mark.skip_t1 # T1 support is not planned
|
||||||
@setup_client(
|
@setup_client(
|
||||||
|
@ -86,6 +86,7 @@ BINANCE_TEST_VECTORS = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.binance
|
@pytest.mark.binance
|
||||||
@pytest.mark.skip_t1 # T1 support is not planned
|
@pytest.mark.skip_t1 # T1 support is not planned
|
||||||
@setup_client(
|
@setup_client(
|
||||||
|
@ -23,6 +23,7 @@ from .common import TrezorTest
|
|||||||
from .conftest import setup_client
|
from .conftest import setup_client
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.cardano
|
@pytest.mark.cardano
|
||||||
@pytest.mark.skip_t1 # T1 support is not planned
|
@pytest.mark.skip_t1 # T1 support is not planned
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
|
@ -28,6 +28,7 @@ SLIP39_MNEMONIC = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.cardano
|
@pytest.mark.cardano
|
||||||
@pytest.mark.skip_t1 # T1 support is not planned
|
@pytest.mark.skip_t1 # T1 support is not planned
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
|
@ -22,6 +22,7 @@ from trezorlib.tools import parse_path
|
|||||||
from .conftest import setup_client
|
from .conftest import setup_client
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.cardano
|
@pytest.mark.cardano
|
||||||
@pytest.mark.skip_t1 # T1 support is not planned
|
@pytest.mark.skip_t1 # T1 support is not planned
|
||||||
@setup_client(mnemonic=" ".join(["all"] * 12))
|
@setup_client(mnemonic=" ".join(["all"] * 12))
|
||||||
|
@ -31,6 +31,7 @@ SLIP39_MNEMONIC = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.cardano
|
@pytest.mark.cardano
|
||||||
@pytest.mark.skip_t1 # T1 support is not planned
|
@pytest.mark.skip_t1 # T1 support is not planned
|
||||||
@setup_client(mnemonic=SLIP39_MNEMONIC, passphrase=True)
|
@setup_client(mnemonic=SLIP39_MNEMONIC, passphrase=True)
|
||||||
|
@ -170,6 +170,7 @@ INVALID_VECTORS = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.cardano
|
@pytest.mark.cardano
|
||||||
@pytest.mark.skip_t1 # T1 support is not planned
|
@pytest.mark.skip_t1 # T1 support is not planned
|
||||||
@setup_client()
|
@setup_client()
|
||||||
@ -209,6 +210,7 @@ def test_cardano_sign_tx(
|
|||||||
assert response.tx_body.hex() == tx_body
|
assert response.tx_body.hex() == tx_body
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.cardano
|
@pytest.mark.cardano
|
||||||
@pytest.mark.skip_t1 # T1 support is not planned
|
@pytest.mark.skip_t1 # T1 support is not planned
|
||||||
@setup_client()
|
@setup_client()
|
||||||
|
@ -112,6 +112,7 @@ VALID_VECTORS = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.cardano
|
@pytest.mark.cardano
|
||||||
@pytest.mark.skip_t1 # T1 support is not planned
|
@pytest.mark.skip_t1 # T1 support is not planned
|
||||||
@setup_client(mnemonic=SHARES_20_3of6, passphrase=True)
|
@setup_client(mnemonic=SHARES_20_3of6, passphrase=True)
|
||||||
|
@ -22,8 +22,9 @@ from trezorlib.tools import parse_path
|
|||||||
from .common import TrezorTest
|
from .common import TrezorTest
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip_t1
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.eos
|
@pytest.mark.eos
|
||||||
|
@pytest.mark.skip_t1
|
||||||
class TestMsgEosGetpublickey(TrezorTest):
|
class TestMsgEosGetpublickey(TrezorTest):
|
||||||
def test_eos_get_public_key(self):
|
def test_eos_get_public_key(self):
|
||||||
self.setup_mnemonic_nopin_nopassphrase()
|
self.setup_mnemonic_nopin_nopassphrase()
|
||||||
|
@ -27,8 +27,9 @@ CHAIN_ID = "cf057bbfb72640471fd910bcb67639c22df9f92470936cddc1ade0e2f2e7dc4f"
|
|||||||
ADDRESS_N = parse_path("m/44'/194'/0'/0/0")
|
ADDRESS_N = parse_path("m/44'/194'/0'/0/0")
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip_t1
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.eos
|
@pytest.mark.eos
|
||||||
|
@pytest.mark.skip_t1
|
||||||
class TestMsgEosSignTx(TrezorTest):
|
class TestMsgEosSignTx(TrezorTest):
|
||||||
def input_flow(self, pages):
|
def input_flow(self, pages):
|
||||||
# confirm number of actions
|
# confirm number of actions
|
||||||
|
@ -22,6 +22,7 @@ from trezorlib.tools import H_
|
|||||||
from .common import TrezorTest
|
from .common import TrezorTest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.ethereum
|
@pytest.mark.ethereum
|
||||||
class TestMsgEthereumGetaddress(TrezorTest):
|
class TestMsgEthereumGetaddress(TrezorTest):
|
||||||
def test_ethereum_getaddress(self):
|
def test_ethereum_getaddress(self):
|
||||||
|
@ -22,6 +22,7 @@ from trezorlib.tools import H_
|
|||||||
from .common import TrezorTest
|
from .common import TrezorTest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.ethereum
|
@pytest.mark.ethereum
|
||||||
class TestMsgEthereumGetPublicKey(TrezorTest):
|
class TestMsgEthereumGetPublicKey(TrezorTest):
|
||||||
def test_ethereum_getpublickey(self):
|
def test_ethereum_getpublickey(self):
|
||||||
|
@ -22,6 +22,7 @@ from trezorlib.tools import H_
|
|||||||
from .common import TrezorTest
|
from .common import TrezorTest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.ethereum
|
@pytest.mark.ethereum
|
||||||
class TestMsgEthereumSignmessage(TrezorTest):
|
class TestMsgEthereumSignmessage(TrezorTest):
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ from .common import TrezorTest
|
|||||||
TO_ADDR = "0x1d1c328764a41bda0492b66baa30c4a339ff85ef"
|
TO_ADDR = "0x1d1c328764a41bda0492b66baa30c4a339ff85ef"
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.ethereum
|
@pytest.mark.ethereum
|
||||||
class TestMsgEthereumSigntx(TrezorTest):
|
class TestMsgEthereumSigntx(TrezorTest):
|
||||||
def test_ethereum_signtx_known_erc20_token(self):
|
def test_ethereum_signtx_known_erc20_token(self):
|
||||||
|
@ -22,6 +22,7 @@ from trezorlib.tools import H_
|
|||||||
from .common import TrezorTest
|
from .common import TrezorTest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.ethereum
|
@pytest.mark.ethereum
|
||||||
class TestMsgEthereumSigntxChainId(TrezorTest):
|
class TestMsgEthereumSigntxChainId(TrezorTest):
|
||||||
def test_ethereum_signtx_eip155(self):
|
def test_ethereum_signtx_eip155(self):
|
||||||
|
@ -21,6 +21,7 @@ from trezorlib import ethereum
|
|||||||
from .common import TrezorTest
|
from .common import TrezorTest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.ethereum
|
@pytest.mark.ethereum
|
||||||
class TestMsgEthereumVerifymessage(TrezorTest):
|
class TestMsgEthereumVerifymessage(TrezorTest):
|
||||||
|
|
||||||
|
@ -55,6 +55,7 @@ class TestMsgGetaddress(TrezorTest):
|
|||||||
== "1GS8X3yc7ntzwGw9vXwj9wqmBWZkTFewBV"
|
== "1GS8X3yc7ntzwGw9vXwj9wqmBWZkTFewBV"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
def test_ltc(self):
|
def test_ltc(self):
|
||||||
self.setup_mnemonic_nopin_nopassphrase()
|
self.setup_mnemonic_nopin_nopassphrase()
|
||||||
assert (
|
assert (
|
||||||
@ -85,6 +86,7 @@ class TestMsgGetaddress(TrezorTest):
|
|||||||
== "moN6aN6NP1KWgnPSqzrrRPvx2x1UtZJssa"
|
== "moN6aN6NP1KWgnPSqzrrRPvx2x1UtZJssa"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
def test_bch(self):
|
def test_bch(self):
|
||||||
self.setup_mnemonic_allallall()
|
self.setup_mnemonic_allallall()
|
||||||
assert (
|
assert (
|
||||||
@ -100,6 +102,7 @@ class TestMsgGetaddress(TrezorTest):
|
|||||||
== "bitcoincash:qzc5q87w069lzg7g3gzx0c8dz83mn7l02scej5aluw"
|
== "bitcoincash:qzc5q87w069lzg7g3gzx0c8dz83mn7l02scej5aluw"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
def test_grs(self):
|
def test_grs(self):
|
||||||
self.setup_mnemonic_allallall()
|
self.setup_mnemonic_allallall()
|
||||||
assert (
|
assert (
|
||||||
@ -115,6 +118,7 @@ class TestMsgGetaddress(TrezorTest):
|
|||||||
== "Fmhtxeh7YdCBkyQF7AQG4QnY8y3rJg89di"
|
== "Fmhtxeh7YdCBkyQF7AQG4QnY8y3rJg89di"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
def test_elements(self):
|
def test_elements(self):
|
||||||
self.setup_mnemonic_allallall()
|
self.setup_mnemonic_allallall()
|
||||||
assert (
|
assert (
|
||||||
@ -178,6 +182,7 @@ class TestMsgGetaddress(TrezorTest):
|
|||||||
multisig=getmultisig(1, 0, xpubs=xpubs),
|
multisig=getmultisig(1, 0, xpubs=xpubs),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
def test_bch_multisig(self):
|
def test_bch_multisig(self):
|
||||||
self.setup_mnemonic_allallall()
|
self.setup_mnemonic_allallall()
|
||||||
xpubs = []
|
xpubs = []
|
||||||
|
@ -67,6 +67,10 @@ class TestMsgGetaddressSegwit(TrezorTest):
|
|||||||
)
|
)
|
||||||
== "mvbu1Gdy8SUjTenqerxUaZyYjmveZvt33q"
|
== "mvbu1Gdy8SUjTenqerxUaZyYjmveZvt33q"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
|
def test_show_segwit_altcoin(self):
|
||||||
|
self.setup_mnemonic_allallall()
|
||||||
assert (
|
assert (
|
||||||
btc.get_address(
|
btc.get_address(
|
||||||
self.client,
|
self.client,
|
||||||
|
@ -67,6 +67,10 @@ class TestMsgGetaddressSegwitNative(TrezorTest):
|
|||||||
)
|
)
|
||||||
== "mvbu1Gdy8SUjTenqerxUaZyYjmveZvt33q"
|
== "mvbu1Gdy8SUjTenqerxUaZyYjmveZvt33q"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
|
def test_show_segwit_altcoin(self):
|
||||||
|
self.setup_mnemonic_allallall()
|
||||||
assert (
|
assert (
|
||||||
btc.get_address(
|
btc.get_address(
|
||||||
self.client,
|
self.client,
|
||||||
|
@ -70,6 +70,7 @@ class TestMsgGetpublickey(TrezorTest):
|
|||||||
== "xpub6A3FoZqQEK6iwLZ4HFkqSo5fb35BH4bpjC4SPZ63prfLdGYPwYxEuC6o91bUvFFdMzKWe5rs3axHRUjxJaSvBnKKFtnfLwDACRxPxabsv2r"
|
== "xpub6A3FoZqQEK6iwLZ4HFkqSo5fb35BH4bpjC4SPZ63prfLdGYPwYxEuC6o91bUvFFdMzKWe5rs3axHRUjxJaSvBnKKFtnfLwDACRxPxabsv2r"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
def test_ltc(self):
|
def test_ltc(self):
|
||||||
self.setup_mnemonic_nopin_nopassphrase()
|
self.setup_mnemonic_nopin_nopassphrase()
|
||||||
assert (
|
assert (
|
||||||
|
@ -24,6 +24,7 @@ from .common import TrezorTest
|
|||||||
LISK_PATH = parse_path("m/44h/134h/0h/1h")
|
LISK_PATH = parse_path("m/44h/134h/0h/1h")
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.lisk
|
@pytest.mark.lisk
|
||||||
class TestMsgLiskGetaddress(TrezorTest):
|
class TestMsgLiskGetaddress(TrezorTest):
|
||||||
def test_lisk_getaddress(self):
|
def test_lisk_getaddress(self):
|
||||||
|
@ -24,6 +24,7 @@ from .common import TrezorTest
|
|||||||
LISK_PATH = parse_path("m/44h/134h/0h/0h")
|
LISK_PATH = parse_path("m/44h/134h/0h/0h")
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.lisk
|
@pytest.mark.lisk
|
||||||
class TestMsgLiskGetPublicKey(TrezorTest):
|
class TestMsgLiskGetPublicKey(TrezorTest):
|
||||||
def test_lisk_get_public_key(self):
|
def test_lisk_get_public_key(self):
|
||||||
|
@ -24,6 +24,7 @@ from .common import TrezorTest
|
|||||||
LISK_PATH = parse_path("m/44h/134h/0h/0h")
|
LISK_PATH = parse_path("m/44h/134h/0h/0h")
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.lisk
|
@pytest.mark.lisk
|
||||||
class TestMsgLiskSignmessage(TrezorTest):
|
class TestMsgLiskSignmessage(TrezorTest):
|
||||||
def test_sign(self):
|
def test_sign(self):
|
||||||
|
@ -22,6 +22,7 @@ from trezorlib.tools import parse_path
|
|||||||
from .common import TrezorTest
|
from .common import TrezorTest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.lisk
|
@pytest.mark.lisk
|
||||||
class TestMsgLiskSignTx(TrezorTest):
|
class TestMsgLiskSignTx(TrezorTest):
|
||||||
def test_lisk_sign_tx_send(self):
|
def test_lisk_sign_tx_send(self):
|
||||||
|
@ -21,6 +21,7 @@ from trezorlib import lisk, messages as proto
|
|||||||
from .common import TrezorTest
|
from .common import TrezorTest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.lisk
|
@pytest.mark.lisk
|
||||||
class TestMsgLiskVerifymessage(TrezorTest):
|
class TestMsgLiskVerifymessage(TrezorTest):
|
||||||
def test_verify(self):
|
def test_verify(self):
|
||||||
|
@ -22,6 +22,7 @@ from trezorlib.tools import parse_path
|
|||||||
from .common import TrezorTest
|
from .common import TrezorTest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.monero
|
@pytest.mark.monero
|
||||||
@pytest.mark.skip_t1
|
@pytest.mark.skip_t1
|
||||||
class TestMsgMoneroGetaddress(TrezorTest):
|
class TestMsgMoneroGetaddress(TrezorTest):
|
||||||
|
@ -22,6 +22,7 @@ from trezorlib.tools import parse_path
|
|||||||
from .common import TrezorTest
|
from .common import TrezorTest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.monero
|
@pytest.mark.monero
|
||||||
@pytest.mark.skip_t1
|
@pytest.mark.skip_t1
|
||||||
class TestMsgMoneroGetwatchkey(TrezorTest):
|
class TestMsgMoneroGetwatchkey(TrezorTest):
|
||||||
|
@ -22,6 +22,7 @@ from trezorlib.tools import parse_path
|
|||||||
from .common import TrezorTest
|
from .common import TrezorTest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.nem
|
@pytest.mark.nem
|
||||||
class TestMsgNEMGetaddress(TrezorTest):
|
class TestMsgNEMGetaddress(TrezorTest):
|
||||||
def test_nem_getaddress(self):
|
def test_nem_getaddress(self):
|
||||||
|
@ -23,6 +23,7 @@ from .common import TrezorTest
|
|||||||
|
|
||||||
|
|
||||||
# assertion data from T1
|
# assertion data from T1
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.nem
|
@pytest.mark.nem
|
||||||
@pytest.mark.skip_t2
|
@pytest.mark.skip_t2
|
||||||
class TestMsgNEMSignTxMosaics(TrezorTest):
|
class TestMsgNEMSignTxMosaics(TrezorTest):
|
||||||
|
@ -25,6 +25,7 @@ from .common import TrezorTest
|
|||||||
|
|
||||||
|
|
||||||
# assertion data from T1
|
# assertion data from T1
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.nem
|
@pytest.mark.nem
|
||||||
@pytest.mark.skip_t1
|
@pytest.mark.skip_t1
|
||||||
class TestMsgNEMSignTxMosaics(TrezorTest):
|
class TestMsgNEMSignTxMosaics(TrezorTest):
|
||||||
|
@ -23,6 +23,7 @@ from .common import TrezorTest
|
|||||||
|
|
||||||
|
|
||||||
# assertion data from T1
|
# assertion data from T1
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.nem
|
@pytest.mark.nem
|
||||||
class TestMsgNEMSignTxMultisig(TrezorTest):
|
class TestMsgNEMSignTxMultisig(TrezorTest):
|
||||||
def test_nem_signtx_aggregate_modification(self):
|
def test_nem_signtx_aggregate_modification(self):
|
||||||
|
@ -23,6 +23,7 @@ from .common import TrezorTest
|
|||||||
|
|
||||||
|
|
||||||
# assertion data from T1
|
# assertion data from T1
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.nem
|
@pytest.mark.nem
|
||||||
class TestMsgNEMSignTxOther(TrezorTest):
|
class TestMsgNEMSignTxOther(TrezorTest):
|
||||||
def test_nem_signtx_importance_transfer(self):
|
def test_nem_signtx_importance_transfer(self):
|
||||||
|
@ -23,6 +23,7 @@ from .common import TrezorTest
|
|||||||
|
|
||||||
|
|
||||||
# assertion data from T1
|
# assertion data from T1
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.nem
|
@pytest.mark.nem
|
||||||
class TestMsgNEMSignTx(TrezorTest):
|
class TestMsgNEMSignTx(TrezorTest):
|
||||||
def test_nem_signtx_simple(self):
|
def test_nem_signtx_simple(self):
|
||||||
|
@ -23,6 +23,7 @@ from trezorlib.tools import parse_path
|
|||||||
from .common import TrezorTest
|
from .common import TrezorTest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.ripple
|
@pytest.mark.ripple
|
||||||
@pytest.mark.skip_t1 # T1 support is not planned
|
@pytest.mark.skip_t1 # T1 support is not planned
|
||||||
class TestMsgRippleGetAddress(TrezorTest):
|
class TestMsgRippleGetAddress(TrezorTest):
|
||||||
|
@ -22,6 +22,7 @@ from trezorlib.tools import CallException, parse_path
|
|||||||
from .common import TrezorTest
|
from .common import TrezorTest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.ripple
|
@pytest.mark.ripple
|
||||||
@pytest.mark.skip_t1 # T1 support is not planned
|
@pytest.mark.skip_t1 # T1 support is not planned
|
||||||
class TestMsgRippleSignTx(TrezorTest):
|
class TestMsgRippleSignTx(TrezorTest):
|
||||||
|
@ -45,6 +45,7 @@ class TestMsgSignmessage(TrezorTest):
|
|||||||
== "209e23edf0e4e47ff1dec27f32cd78c50e74ef018ee8a6adf35ae17c7a9b0dd96f48b493fd7dbab03efb6f439c6383c9523b3bbc5f1a7d158a6af90ab154e9be80"
|
== "209e23edf0e4e47ff1dec27f32cd78c50e74ef018ee8a6adf35ae17c7a9b0dd96f48b493fd7dbab03efb6f439c6383c9523b3bbc5f1a7d158a6af90ab154e9be80"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
def test_sign_bch(self):
|
def test_sign_bch(self):
|
||||||
self.setup_mnemonic_nopin_nopassphrase()
|
self.setup_mnemonic_nopin_nopassphrase()
|
||||||
sig = btc.sign_message(
|
sig = btc.sign_message(
|
||||||
@ -56,6 +57,7 @@ class TestMsgSignmessage(TrezorTest):
|
|||||||
== "209e23edf0e4e47ff1dec27f32cd78c50e74ef018ee8a6adf35ae17c7a9b0dd96f48b493fd7dbab03efb6f439c6383c9523b3bbc5f1a7d158a6af90ab154e9be80"
|
== "209e23edf0e4e47ff1dec27f32cd78c50e74ef018ee8a6adf35ae17c7a9b0dd96f48b493fd7dbab03efb6f439c6383c9523b3bbc5f1a7d158a6af90ab154e9be80"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
def test_sign_grs(self):
|
def test_sign_grs(self):
|
||||||
self.setup_mnemonic_allallall()
|
self.setup_mnemonic_allallall()
|
||||||
sig = btc.sign_message(
|
sig = btc.sign_message(
|
||||||
|
@ -22,6 +22,7 @@ from trezorlib.tools import parse_path
|
|||||||
from .common import TrezorTest
|
from .common import TrezorTest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.decred
|
@pytest.mark.decred
|
||||||
class TestMsgSignmessageDecred(TrezorTest):
|
class TestMsgSignmessageDecred(TrezorTest):
|
||||||
def test_sign_mainnet(self):
|
def test_sign_mainnet(self):
|
||||||
|
@ -53,6 +53,7 @@ class TestMsgSignmessageSegwit(TrezorTest):
|
|||||||
== "249e23edf0e4e47ff1dec27f32cd78c50e74ef018ee8a6adf35ae17c7a9b0dd96f48b493fd7dbab03efb6f439c6383c9523b3bbc5f1a7d158a6af90ab154e9be80"
|
== "249e23edf0e4e47ff1dec27f32cd78c50e74ef018ee8a6adf35ae17c7a9b0dd96f48b493fd7dbab03efb6f439c6383c9523b3bbc5f1a7d158a6af90ab154e9be80"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
def test_sign_grs(self):
|
def test_sign_grs(self):
|
||||||
self.setup_mnemonic_allallall()
|
self.setup_mnemonic_allallall()
|
||||||
sig = btc.sign_message(
|
sig = btc.sign_message(
|
||||||
|
@ -53,6 +53,7 @@ class TestMsgSignmessageSegwitNative(TrezorTest):
|
|||||||
== "289e23edf0e4e47ff1dec27f32cd78c50e74ef018ee8a6adf35ae17c7a9b0dd96f48b493fd7dbab03efb6f439c6383c9523b3bbc5f1a7d158a6af90ab154e9be80"
|
== "289e23edf0e4e47ff1dec27f32cd78c50e74ef018ee8a6adf35ae17c7a9b0dd96f48b493fd7dbab03efb6f439c6383c9523b3bbc5f1a7d158a6af90ab154e9be80"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
def test_sign_grs(self):
|
def test_sign_grs(self):
|
||||||
self.setup_mnemonic_allallall()
|
self.setup_mnemonic_allallall()
|
||||||
sig = btc.sign_message(
|
sig = btc.sign_message(
|
||||||
|
@ -25,6 +25,7 @@ from .tx_cache import tx_cache
|
|||||||
TX_API = tx_cache("Bcash")
|
TX_API = tx_cache("Bcash")
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
class TestMsgSigntxBch(TrezorTest):
|
class TestMsgSigntxBch(TrezorTest):
|
||||||
def test_send_bch_change(self):
|
def test_send_bch_change(self):
|
||||||
self.setup_mnemonic_allallall()
|
self.setup_mnemonic_allallall()
|
||||||
|
@ -26,6 +26,7 @@ TX_API = tx_cache("Bgold")
|
|||||||
|
|
||||||
|
|
||||||
# All data taken from T1
|
# All data taken from T1
|
||||||
|
@pytest.mark.altcoin
|
||||||
class TestMsgSigntxBitcoinGold(TrezorTest):
|
class TestMsgSigntxBitcoinGold(TrezorTest):
|
||||||
def test_send_bitcoin_gold_change(self):
|
def test_send_bitcoin_gold_change(self):
|
||||||
self.setup_mnemonic_allallall()
|
self.setup_mnemonic_allallall()
|
||||||
|
@ -23,6 +23,7 @@ from .tx_cache import tx_cache
|
|||||||
TX_API = tx_cache("Dash")
|
TX_API = tx_cache("Dash")
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
class TestMsgSigntxDash(TrezorTest):
|
class TestMsgSigntxDash(TrezorTest):
|
||||||
def test_send_dash(self):
|
def test_send_dash(self):
|
||||||
self.setup_mnemonic_allallall()
|
self.setup_mnemonic_allallall()
|
||||||
|
@ -45,6 +45,7 @@ TXHASH_16da18 = bytes.fromhex(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.decred
|
@pytest.mark.decred
|
||||||
class TestMsgSigntxDecred(TrezorTest):
|
class TestMsgSigntxDecred(TrezorTest):
|
||||||
def test_send_decred(self):
|
def test_send_decred(self):
|
||||||
|
@ -23,6 +23,7 @@ from .tx_cache import tx_cache
|
|||||||
TX_API = tx_cache("Groestlcoin")
|
TX_API = tx_cache("Groestlcoin")
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
class TestMsgSigntxGRS(TrezorTest):
|
class TestMsgSigntxGRS(TrezorTest):
|
||||||
def test_legacy(self):
|
def test_legacy(self):
|
||||||
# http://blockbook.groestlcoin.org/tx/f56521b17b828897f72b30dd21b0192fd942342e89acbb06abf1d446282c30f5
|
# http://blockbook.groestlcoin.org/tx/f56521b17b828897f72b30dd21b0192fd942342e89acbb06abf1d446282c30f5
|
||||||
|
@ -34,6 +34,7 @@ TXHASH_7b28bd = bytes.fromhex(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.komodo
|
@pytest.mark.komodo
|
||||||
class TestMsgSigntxKomodo(TrezorTest):
|
class TestMsgSigntxKomodo(TrezorTest):
|
||||||
def test_one_one_fee_sapling(self):
|
def test_one_one_fee_sapling(self):
|
||||||
|
@ -32,6 +32,7 @@ TXHASH_e38206 = bytes.fromhex(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.zcash
|
@pytest.mark.zcash
|
||||||
class TestMsgSigntxZcash(TrezorTest):
|
class TestMsgSigntxZcash(TrezorTest):
|
||||||
def test_one_one_fee_overwinter(self):
|
def test_one_one_fee_overwinter(self):
|
||||||
|
@ -23,6 +23,7 @@ from .common import TrezorTest
|
|||||||
from .conftest import TREZOR_VERSION
|
from .conftest import TREZOR_VERSION
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.stellar
|
@pytest.mark.stellar
|
||||||
class TestMsgStellarGetAddress(TrezorTest):
|
class TestMsgStellarGetAddress(TrezorTest):
|
||||||
def test_stellar_get_address(self):
|
def test_stellar_get_address(self):
|
||||||
|
@ -56,6 +56,7 @@ from trezorlib.tools import parse_path
|
|||||||
from .common import TrezorTest
|
from .common import TrezorTest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.stellar
|
@pytest.mark.stellar
|
||||||
class TestMsgStellarSignTransaction(TrezorTest):
|
class TestMsgStellarSignTransaction(TrezorTest):
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ from trezorlib.tools import parse_path
|
|||||||
from .common import TrezorTest
|
from .common import TrezorTest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.tezos
|
@pytest.mark.tezos
|
||||||
@pytest.mark.skip_t1
|
@pytest.mark.skip_t1
|
||||||
class TestMsgTezosGetAddress(TrezorTest):
|
class TestMsgTezosGetAddress(TrezorTest):
|
||||||
|
@ -22,6 +22,7 @@ from trezorlib.tools import parse_path
|
|||||||
from .common import TrezorTest
|
from .common import TrezorTest
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.tezos
|
@pytest.mark.tezos
|
||||||
@pytest.mark.skip_t1
|
@pytest.mark.skip_t1
|
||||||
class TestMsgTezosGetPublicKey(TrezorTest):
|
class TestMsgTezosGetPublicKey(TrezorTest):
|
||||||
|
@ -27,6 +27,7 @@ TEZOS_PATH = parse_path("m/44'/1729'/0'")
|
|||||||
TEZOS_PATH_10 = parse_path("m/44'/1729'/10'")
|
TEZOS_PATH_10 = parse_path("m/44'/1729'/10'")
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
@pytest.mark.tezos
|
@pytest.mark.tezos
|
||||||
@pytest.mark.skip_t1
|
@pytest.mark.skip_t1
|
||||||
class TestMsgTezosSignTx(TrezorTest):
|
class TestMsgTezosSignTx(TrezorTest):
|
||||||
|
@ -48,6 +48,7 @@ class TestMsgVerifymessage(TrezorTest):
|
|||||||
)
|
)
|
||||||
assert ret is True
|
assert ret is True
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
def test_message_grs(self):
|
def test_message_grs(self):
|
||||||
self.setup_mnemonic_allallall()
|
self.setup_mnemonic_allallall()
|
||||||
ret = btc.verify_message(
|
ret = btc.verify_message(
|
||||||
@ -172,6 +173,7 @@ class TestMsgVerifymessage(TrezorTest):
|
|||||||
)
|
)
|
||||||
assert res is False
|
assert res is False
|
||||||
|
|
||||||
|
@pytest.mark.altcoin
|
||||||
def test_message_verify_bcash(self):
|
def test_message_verify_bcash(self):
|
||||||
self.setup_mnemonic_nopin_nopassphrase()
|
self.setup_mnemonic_nopin_nopassphrase()
|
||||||
res = btc.verify_message(
|
res = btc.verify_message(
|
||||||
|
Loading…
Reference in New Issue
Block a user