from __future__ import annotations import pytest def test_exec_list_accounts_returns_non_empty_json(): # already covered in test_smoke from src.trader_mcp.exec_client import list_accounts accounts = list_accounts() assert isinstance(accounts, list) assert len(accounts) > 0 def test_crypto_get_latest_xrp_price_shape(): from src.trader_mcp.crypto_client import get_latest_xrp_price resp = get_latest_xrp_price("xrp") assert isinstance(resp, dict) assert resp.get("symbol") in {"xrp", "XRP"} assert isinstance(resp.get("price"), (int, float)) assert isinstance(resp.get("timestamp"), (int, float))