Skip to content

Commit f379501

Browse files
committed
Fixes needed after making CDDL format default
See IntersectMBO/cardano-node#4303
1 parent 3ae6f98 commit f379501

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

cardano_node_tests/tests/test_native_tokens.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2222,11 +2222,13 @@ def test_multiasset_txouts_syntax(
22222222
txout_str,
22232223
"--mint",
22242224
mint_str,
2225-
"--cddl-format" if cluster.use_cddl else "--cli-format",
22262225
"--out-file",
22272226
str(out_file),
22282227
]
22292228

2229+
if cluster.use_cddl:
2230+
build_raw_args.append("--cddl-format")
2231+
22302232
# build transaction body
22312233
cluster.cli(build_raw_args)
22322234

cardano_node_tests/tests/test_shelley_cddl.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
reason="runs only with Shelley TX",
3131
)
3232
class TestShelleyCDDL:
33+
@pytest.fixture(scope="class")
34+
def skip_cddl(self):
35+
if not clusterlib_utils.cli_has("transaction build-raw --cddl-format"):
36+
pytest.skip("The `--cddl-format` option is no longer available.")
37+
3338
@pytest.fixture
3439
def payment_addrs(
3540
self,
@@ -56,9 +61,13 @@ def payment_addrs(
5661

5762
@allure.link(helpers.get_vcs_link())
5863
def test_shelley_cddl(
59-
self, cluster: clusterlib.ClusterLib, payment_addrs: List[clusterlib.AddressRecord]
64+
self,
65+
skip_cddl: None,
66+
cluster: clusterlib.ClusterLib,
67+
payment_addrs: List[clusterlib.AddressRecord],
6068
):
6169
"""Check expected failure when Shelley Tx is used with CDDL format."""
70+
# pylint: disable=unused-argument
6271
temp_template = common.get_test_id(cluster)
6372

6473
src_address = payment_addrs[0].address

cardano_node_tests/tests/test_transactions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3114,7 +3114,7 @@ def test_sign_wrong_file(
31143114
# combination is used
31153115
# TODO: move this tests from `TestNegative` once CDDL is the only supported format
31163116
# of Tx body
3117-
if cluster.use_cddl:
3117+
if cluster.use_cddl or not clusterlib_utils.cli_has("transaction build-raw --cddl-format"):
31183118
tx_signed_again = cluster.sign_tx(
31193119
**cli_args,
31203120
signing_key_files=tx_files.signing_key_files,

0 commit comments

Comments
 (0)