1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-24 07:18:09 +00:00

chore(tests): fix CI failures

Disable some tests of unsupported coins for TS3.

[no changelog]
This commit is contained in:
obrusvit 2024-01-26 15:39:39 +01:00 committed by Vít Obrusník
parent e073e619c9
commit a351614e3a
3 changed files with 65 additions and 55 deletions

View File

@ -1,5 +1,6 @@
from common import * # isort:skip
if not utils.MODEL_IS_T2B1:
from trezor.crypto import bip39
from trezor.enums import AmountUnit, OutputScriptType
from trezor.enums.RequestType import TXFINISHED, TXINPUT, TXMETA, TXOUTPUT
@ -34,7 +35,9 @@ EMPTY_SERIALIZED = TxRequestSerializedType(serialized_tx=bytearray())
coin_decred = coins.by_name("Decred Testnet")
ptx1 = PrevTx(version=1, lock_time=0, inputs_count=1, outputs_count=2, extra_data_len=0)
ptx1 = PrevTx(
version=1, lock_time=0, inputs_count=1, outputs_count=2, extra_data_len=0
)
pinp1 = PrevInput(
script_sig=unhexlify(
"47304402207d127d59a44187952d9d0de94ad34a19dd9a84beb124fd8a3fb439c862544d3202206618f321385c30bda96fb01ce03f70a269d78a301c0b0c2e3e3689dfae3f4733012102ae1f6b51086bd753f072f94eb8ffe6806d3570c088a3ede46c678b6ea47d1675"
@ -402,4 +405,5 @@ class TestSignTxDecred(unittest.TestCase):
if __name__ == "__main__":
if not utils.MODEL_IS_T2B1:
unittest.main()

View File

@ -18,12 +18,17 @@ class TestCoins(unittest.TestCase):
@unittest.skipUnless(not utils.BITCOIN_ONLY, "altcoin")
def test_altcoins(self):
ref = [
("NMC", "Namecoin", 52),
("LTC", "Litecoin", 48),
("DASH", "Dash", 76),
("ZEC", "Zcash", 7352),
("TAZ", "Zcash Testnet", 7461),
]
if not utils.MODEL_IS_T2B1:
ref.extend(
[
("NMC", "Namecoin", 52),
("DASH", "Dash", 76),
]
)
for s, n, a in ref:
c = coins.by_name(n)
self.assertEqual(c.address_type, a)

View File

@ -319,4 +319,5 @@ class TestNemHDNode(unittest.TestCase):
if __name__ == "__main__":
if not utils.MODEL_IS_T2B1:
unittest.main()