Fix RL test

This commit is contained in:
Mariano Sorgente 2020-09-15 00:42:34 +09:00
parent 9c8d9abb48
commit a270a2cc6b
2 changed files with 3 additions and 10 deletions

View File

@ -51,9 +51,7 @@ async def print_balances(wallet_client):
print(
f" -Unconfirmed: {balances['unconfirmed_wallet_balance']/units['chia']} TXCH"
)
print(
f" -Spendable: {balances['spendable_balance']/units['chia']} TXCH"
)
print(f" -Spendable: {balances['spendable_balance']/units['chia']} TXCH")
print(f" -Frozen: {balances['frozen_balance']/units['chia']} TXCH")
print(
f" -Pending change: {balances['pending_change']/units['chia']} TXCH"

View File

@ -113,15 +113,10 @@ class TestCCWallet:
await time_out_assert(15, check_balance, 100, api_user, user_wallet_id)
receiving_wallet = wallet_node_2.wallet_state_manager.main_wallet
puzzle_hash = encode_puzzle_hash(await receiving_wallet.get_new_puzzlehash())
address = encode_puzzle_hash(await receiving_wallet.get_new_puzzlehash())
assert await receiving_wallet.get_spendable_balance() == 0
val = await api_user.send_transaction(
{
"wallet_id": user_wallet_id,
"amount": 3,
"fee": 0,
"puzzle_hash": puzzle_hash,
}
{"wallet_id": user_wallet_id, "amount": 3, "fee": 0, "address": address}
)
assert "transaction_id" in val