Skip to content

Commit f425451

Browse files
committed
fix tests
1 parent 9870e64 commit f425451

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
@@ -559,7 +559,7 @@ async def spend_clawback_coins(
559559
inst_rpc_client = ClawbackWalletRpcClient()
560560
test_rpc_clients.wallet_rpc_client = inst_rpc_client
561561
tx_ids = [get_bytes32(3), get_bytes32(4), get_bytes32(5)]
562-
r_tx_ids_hex = [get_bytes32(6).hex(), get_bytes32(7).hex(), get_bytes32(8).hex()]
562+
r_tx_ids_hex = ["0x" + get_bytes32(6).hex(), "0x" + get_bytes32(7).hex(), "0x" + get_bytes32(8).hex()]
563563
command_args = [
564564
"wallet",
565565
"clawback",
@@ -573,7 +573,7 @@ async def spend_clawback_coins(
573573
"--expires-at",
574574
"150",
575575
]
576-
run_cli_command_and_assert(capsys, root_dir, command_args, ["transaction_ids", str(r_tx_ids_hex)])
576+
run_cli_command_and_assert(capsys, root_dir, command_args, ["transaction_ids", *r_tx_ids_hex])
577577
# these are various things that should be in the output
578578
expected_calls: logType = {
579579
"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
@@ -397,8 +397,6 @@ async def test_wallet_clawback_clawback(self, wallet_environments: WalletTestFra
397397
assert not txs["transactions"][0]["confirmed"]
398398
assert txs["transactions"][0]["metadata"]["recipient_puzzle_hash"][2:] == normal_puzhash.hex()
399399
assert txs["transactions"][0]["metadata"]["coin_id"] == "0x" + merkle_coin.name().hex()
400-
with pytest.raises(ValueError):
401-
await api_0.spend_clawback_coins({})
402400

403401
test_fee = 10
404402
resp = await api_0.spend_clawback_coins(
@@ -408,7 +406,6 @@ async def test_wallet_clawback_clawback(self, wallet_environments: WalletTestFra
408406
**wallet_environments.tx_config.to_json_dict(),
409407
}
410408
)
411-
assert resp["success"]
412409
assert len(resp["transaction_ids"]) == 1
413410

414411
await wallet_environments.process_pending_states(
@@ -541,7 +538,6 @@ async def test_wallet_clawback_sent_self(self, wallet_environments: WalletTestFr
541538
**wallet_environments.tx_config.to_json_dict(),
542539
}
543540
)
544-
assert resp["success"]
545541
assert len(resp["transaction_ids"]) == 1
546542
# Wait mempool update
547543
await wallet_environments.process_pending_states(

0 commit comments

Comments
 (0)