Skip to content

Commit b3867ee

Browse files
committed
feat(tests): add Conway era tx body and update CLI test
- Add `test_tx_metadata_both_tx_conway.body` with Conway era transaction in CDDL format for testing. - Update `TestCLI` in `test_cli.py` to use the new Conway era tx body file in CLI tests.
1 parent bd68e39 commit b3867ee

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "Tx ConwayEra",
3+
"description": "Ledger Cddl Format",
4+
"cborHex": "84a400d901028182582009dc7193a34e99ec75abb398ce6dad49d6a5d403bead3bc5bafdc03a364859f800018182581d60928faa7ebf79cb8ccdcf618ca631c4653a6e35bb02b792e98efa07cd1a08ee035f021a0002ce2107582083f9c606d3db46759c0ffb0b1f12fc8fd03460de7a4099f9ee797cdbb790beafa0f5d90103a100a50163666f6f0263626172036362617a056763617264616e6f066572756c6573"
5+
}

cardano_node_tests/tests/test_cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class TestCLI:
3939
"""Tests for cardano-cli."""
4040

4141
TX_BODY_FILE = DATA_DIR / "test_tx_metadata_both_tx.body"
42+
TX_BODY_FILE_CONWAY = DATA_DIR / "test_tx_metadata_both_tx_conway.body"
4243
TX_FILE = DATA_DIR / "test_tx_metadata_both_tx.signed"
4344
TX_BODY_OUT_JSON = DATA_DIR / "test_tx_metadata_both_tx_body_json.out"
4445
TX_OUT_JSON = DATA_DIR / "test_tx_metadata_both_tx_json.out"
@@ -117,7 +118,7 @@ def test_calculate_min_fee(self, cluster: clusterlib.ClusterLib):
117118
"--protocol-params-file",
118119
str(cluster.pparams_file),
119120
"--tx-body-file",
120-
str(self.TX_BODY_FILE),
121+
str(self.TX_BODY_FILE_CONWAY),
121122
"--witness-count",
122123
"1",
123124
"--tx-in-count",

0 commit comments

Comments
 (0)