Skip to content

Commit 8152b1e

Browse files
committed
Wallet Balances
1 parent b5cf8ae commit 8152b1e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/e2e_tests/test_wallet_creations.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,4 +588,15 @@ def test_wallet_balance_all(local_chain, wallet_setup, capfd):
588588
wallet_name in output
589589
), f"Wallet {wallet_name} not found in balance --all output"
590590

591+
json_results = exec_command(
592+
"wallet",
593+
"balance",
594+
extra_args=["--wallet-path", wallet_path, "--all", "--json-output"],
595+
)
596+
json_results_output = json.loads(json_results.stdout)
597+
for wallet_name in wallet_names:
598+
assert wallet_name in json_results_output["balances"].keys()
599+
assert json_results_output["balances"][wallet_name]["total"] == 0.0
600+
assert "coldkey" in json_results_output["balances"][wallet_name]
601+
591602
print("Passed wallet balance --all command with 100 wallets ✅")

0 commit comments

Comments
 (0)