Skip to content

Commit 44cb53a

Browse files
committed
test(tx_basic): assert fee info in tx build stdout
Add assertion to check that the transaction build command's stdout contains Lovelace fee information. This ensures that fee details are present in the output, improving test coverage.
1 parent 35554a0 commit 44cb53a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cardano_node_tests/tests/test_tx_basic.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ def test_build_multiple_same_txins(
967967
txins=tx_raw_output.txins, txouts=tx_raw_output.txouts
968968
)
969969

970-
cluster.cli(
970+
out = cluster.cli(
971971
[
972972
"transaction",
973973
"build",
@@ -985,6 +985,9 @@ def test_build_multiple_same_txins(
985985
)
986986
assert tx_raw_output.out_file.exists()
987987

988+
stdout_dec = out.stdout.strip().decode("utf-8") if out.stdout else ""
989+
assert " Lovelace" in stdout_dec, "Fee information not found in stdout"
990+
988991
@allure.link(helpers.get_vcs_link())
989992
@pytest.mark.skipif(
990993
VERSIONS.transaction_era < VERSIONS.ALONZO,

0 commit comments

Comments
 (0)