Skip to content

Commit 71d5969

Browse files
committed
fix tests
1 parent f3a84b1 commit 71d5969

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

chia/_tests/cmds/wallet/test_wallet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ async def spend_clawback_coins(
553553
inst_rpc_client = ClawbackWalletRpcClient()
554554
test_rpc_clients.wallet_rpc_client = inst_rpc_client
555555
tx_ids = [get_bytes32(3), get_bytes32(4), get_bytes32(5)]
556-
r_tx_ids_hex = [get_bytes32(6).hex(), get_bytes32(7).hex(), get_bytes32(8).hex()]
556+
r_tx_ids_hex = ["0x" + get_bytes32(6).hex(), "0x" + get_bytes32(7).hex(), "0x" + get_bytes32(8).hex()]
557557
command_args = [
558558
"wallet",
559559
"clawback",
@@ -567,7 +567,7 @@ async def spend_clawback_coins(
567567
"--expires-at",
568568
"150",
569569
]
570-
run_cli_command_and_assert(capsys, root_dir, command_args, ["transaction_ids", str(r_tx_ids_hex)])
570+
run_cli_command_and_assert(capsys, root_dir, command_args, ["transaction_ids", *r_tx_ids_hex])
571571
# these are various things that should be in the output
572572
expected_calls: logType = {
573573
"spend_clawback_coins": [(tx_ids, 500000000000, False, True, test_condition_valid_times)],

chia/_tests/wallet/test_wallet.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,6 @@ async def test_wallet_clawback_clawback(self, wallet_environments: WalletTestFra
396396
assert not txs["transactions"][0]["confirmed"]
397397
assert txs["transactions"][0]["metadata"]["recipient_puzzle_hash"][2:] == normal_puzhash.hex()
398398
assert txs["transactions"][0]["metadata"]["coin_id"] == "0x" + merkle_coin.name().hex()
399-
with pytest.raises(ValueError):
400-
await api_0.spend_clawback_coins({})
401399

402400
test_fee = 10
403401
resp = await api_0.spend_clawback_coins(
@@ -407,7 +405,6 @@ async def test_wallet_clawback_clawback(self, wallet_environments: WalletTestFra
407405
**wallet_environments.tx_config.to_json_dict(),
408406
}
409407
)
410-
assert resp["success"]
411408
assert len(resp["transaction_ids"]) == 1
412409

413410
await wallet_environments.process_pending_states(
@@ -540,7 +537,6 @@ async def test_wallet_clawback_sent_self(self, wallet_environments: WalletTestFr
540537
**wallet_environments.tx_config.to_json_dict(),
541538
}
542539
)
543-
assert resp["success"]
544540
assert len(resp["transaction_ids"]) == 1
545541
# Wait mempool update
546542
await wallet_environments.process_pending_states(

0 commit comments

Comments
 (0)