1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

chore(cardano): format test fixture files

This commit is contained in:
gabrielkerekes 2021-06-30 14:20:08 +02:00 committed by matejcik
parent 28f0f60295
commit 500d29f43b
7 changed files with 23 additions and 22 deletions

View File

@ -1178,7 +1178,8 @@
]
}
},
{"description": "transaction with everything set except pool registration certificate",
{
"description": "transaction with everything set except pool registration certificate",
"parameters": {
"protocol_magic": 764824073,
"network_id": 1,

View File

@ -34,7 +34,7 @@ pytestmark = [
"cardano/sign_tx.slip39.json",
)
def test_cardano_sign_tx(client, parameters, result):
signing_mode = cardano.SIGNING_MODE_IDS[parameters["signing_mode"]]
signing_mode = messages.CardanoTxSigningMode.__members__[parameters["signing_mode"]]
inputs = [cardano.parse_input(i) for i in parameters["inputs"]]
outputs = [cardano.parse_output(o) for o in parameters["outputs"]]
certificates = [cardano.parse_certificate(c) for c in parameters["certificates"]]
@ -70,7 +70,7 @@ def test_cardano_sign_tx(client, parameters, result):
"cardano/sign_tx.failed.json", "cardano/sign_tx_stake_pool_registration.failed.json"
)
def test_cardano_sign_tx_failed(client, parameters, result):
signing_mode = cardano.SIGNING_MODE_IDS[parameters["signing_mode"]]
signing_mode = messages.CardanoTxSigningMode.__members__[parameters["signing_mode"]]
inputs = [cardano.parse_input(i) for i in parameters["inputs"]]
outputs = [cardano.parse_output(o) for o in parameters["outputs"]]
certificates = [cardano.parse_certificate(c) for c in parameters["certificates"]]