Skip to content

Commit

Permalink
fix pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Jan 2, 2025
1 parent 2d527ae commit b3aa413
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion counterparty-core/counterpartycore/lib/composer.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def complete_unspent_list(unspent_list):
txid = utxo["txid"]
if txid not in txs:
raise exceptions.ComposeError(
f"invalid UTXO: {txid}:{utxo['vout']} (transaction not found)"
f"invalid UTXOs: {txid}:{utxo['vout']} (transaction not found)"
)
for vout in txs[txid]["vout"]:
if vout["n"] == utxo["vout"]:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -581,28 +581,31 @@
),
"error": (
exceptions.ComposeError,
"invalid UTXO: ae241be7be83ebb14902757ad94854f787d9730fc553d6f695346c9375c0d8c2:0 (transaction not found)",
"invalid UTXOs: ae241be7be83ebb14902757ad94854f787d9730fc553d6f695346c9375c0d8c2:0 (transaction not found)",
),
},
],
"prepare_inputs_set": [
{
"in": ("aabb",),
"error": (exceptions.ComposeError, "invalid UTXO: aabb (invalid format)"),
"error": (exceptions.ComposeError, "invalid UTXOs: aabb (invalid format)"),
},
{
"in": ("aa:bb:cc:dd:ee",),
"error": (exceptions.ComposeError, "invalid UTXO: aa:bb:cc:dd:ee (invalid format)"),
"error": (
exceptions.ComposeError,
"invalid UTXOs: aa:bb:cc:dd:ee (invalid format)",
),
},
{
"in": ("aa:3:cc:dd",),
"error": (exceptions.ComposeError, "invalid UTXO: aa:3:cc:dd (invalid format)"),
"error": (exceptions.ComposeError, "invalid UTXOs: aa:3:cc:dd (invalid format)"),
},
{
"in": ("ae241be7be83ebb14902757ad94854f787d9730fc553d6f695346c9375c0d8c1:0:aa",),
"error": (
exceptions.ComposeError,
"invalid UTXO: ae241be7be83ebb14902757ad94854f787d9730fc553d6f695346c9375c0d8c1:0:aa (invalid value)",
"invalid UTXOs: ae241be7be83ebb14902757ad94854f787d9730fc553d6f695346c9375c0d8c1:0:aa (invalid value)",
),
},
{
Expand All @@ -611,7 +614,7 @@
),
"error": (
exceptions.ComposeError,
"invalid UTXO: ae241be7be83ebb14902757ad94854f787d9730fc553d6f695346c9375c0d8c1:0:100:aagh (invalid script_pub_key)",
"invalid UTXOs: ae241be7be83ebb14902757ad94854f787d9730fc553d6f695346c9375c0d8c1:0:100:aagh (invalid script_pub_key)",
),
},
{
Expand Down Expand Up @@ -660,7 +663,7 @@
"in": ("ae241be7be83ebb14902757ad94854f787d9730fc553d6f695346c9375c0d8c2:0",),
"error": (
exceptions.ComposeError,
"invalid UTXO: ae241be7be83ebb14902757ad94854f787d9730fc553d6f695346c9375c0d8c2:0 (not found in the database or Bitcoin Core)",
"invalid UTXOs: ae241be7be83ebb14902757ad94854f787d9730fc553d6f695346c9375c0d8c2:0 (not found in the database or Bitcoin Core)",
),
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,9 @@ def test_transaction_chaining(self):
def test_asset_conservation(self):
self.test_command("check-db")

def test_fee_calculation(self):
pass


class RegtestNodeThread(threading.Thread):
def __init__(self, wsgi_server="waitress", burn_in_one_block=True):
Expand Down

0 comments on commit b3aa413

Please sign in to comment.