Skip to content

Commit d70225c

Browse files
committed
minor fixes
1 parent 4b96d69 commit d70225c

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

integration-test/test/base.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
import os
44
import time
55

6+
from ogmios import OgmiosChainContext
67
from retry import retry
78

89
from pycardano import *
910

10-
from ogmios import OgmiosChainContext
11-
1211
TEST_RETRIES = 6
1312

1413

@@ -24,7 +23,9 @@ class TestBase:
2423
# TODO: Bring back kupo test
2524
KUPO_URL = "http://localhost:1442"
2625

27-
chain_context = OgmiosChainContext(host="localhost", port=1337, network=Network.TESTNET)
26+
chain_context = OgmiosChainContext(
27+
host="localhost", port=1337, network=Network.TESTNET
28+
)
2829

2930
check_chain_context(chain_context)
3031

integration-test/test/test_cardano_cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
from pathlib import Path
3+
34
from retry import retry
45

56
from pycardano import (

test/pycardano/backend/test_cardano_cli.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,15 @@ def test_protocol_param(self, chain_context):
598598
coins_per_utxo_byte=QUERY_PROTOCOL_PARAMETERS_RESULT.get(
599599
"coinsPerUtxoByte", 0
600600
),
601-
cost_models=QUERY_PROTOCOL_PARAMETERS_RESULT["costModels"],
601+
cost_models={
602+
l: {
603+
i: v
604+
for i, v in enumerate(
605+
QUERY_PROTOCOL_PARAMETERS_RESULT["costModels"][l]
606+
)
607+
}
608+
for l in QUERY_PROTOCOL_PARAMETERS_RESULT["costModels"]
609+
},
602610
)
603611
== chain_context.protocol_param
604612
)

0 commit comments

Comments
 (0)