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