test_metals.py 385 B

123456789101112
  1. from src.metals_mcp.mcp_tools import get_capabilities, get_candles, get_last_candle, get_price
  2. def test_capabilities():
  3. caps = get_capabilities()
  4. assert caps["server"] == "metals-mcp"
  5. def test_scaffold_tools():
  6. assert get_price("XAU/USD")["symbol"] == "XAU/USD"
  7. assert get_candles("XAU/USD")["candles"] == []
  8. assert get_last_candle("XAU/USD")["candle"] is None