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:
parent
28f0f60295
commit
500d29f43b
3
common/tests/fixtures/cardano/sign_tx.json
vendored
3
common/tests/fixtures/cardano/sign_tx.json
vendored
@ -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,
|
||||
|
@ -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"]]
|
||||
|
Loading…
Reference in New Issue
Block a user