Skip to content

Commit

Permalink
Merge pull request #1194 from mkoura/update_test_tx_view
Browse files Browse the repository at this point in the history
Update `test_tx_view`
  • Loading branch information
mkoura authored Jun 25, 2022
2 parents de664a5 + 78268a8 commit 681560d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions cardano_node_tests/tests/data/test_tx_metadata_both_tx.out
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ outputs:
payment credential key hash: 9545290549fe29e2c3e4905118d625bc0695779814551e948185146e
reference script: null
stake reference: null
reference inputs: null
required signers (payment key hashes needed for scripts): null
update proposal: null
validity range:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ outputs:
payment credential key hash: 9545290549fe29e2c3e4905118d625bc0695779814551e948185146e
reference script: null
stake reference: null
reference inputs: null
required signers (payment key hashes needed for scripts): null
update proposal: null
validity range:
Expand Down
6 changes: 3 additions & 3 deletions cardano_node_tests/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,16 +182,16 @@ def test_tx_view(self, cluster: clusterlib.ClusterLib):
tx_body = cluster.view_tx(tx_body_file=self.TX_BODY_FILE)
tx = cluster.view_tx(tx_file=self.TX_FILE)

if "payment credential key hash" in tx_body:
if "reference inputs:" in tx_body:
with open(self.TX_BODY_OUT, encoding="utf-8") as infile:
tx_body_view_out = infile.read()
assert tx_body == tx_body_view_out.strip()

if "witnesses:" in tx:
if "reference inputs:" in tx:
with open(self.TX_OUT, encoding="utf-8") as infile:
tx_view_out = infile.read()
assert tx == tx_view_out.strip()
else:
elif "witnesses:" not in tx:
assert tx == tx_body


Expand Down

0 comments on commit 681560d

Please sign in to comment.