| 123456789101112 |
- from __future__ import annotations
- def test_news_get_sentiment_shape():
- from src.trader_mcp.news_client import call_news_tool
- resp = call_news_tool("get_news_sentiment", {"entity": "XRP"})
- assert isinstance(resp, dict)
- assert resp.get("entity") == "XRP"
- assert resp.get("sentiment") in {"positive", "neutral", "negative"}
- assert isinstance(resp.get("score"), (int, float))
- assert isinstance(resp.get("cluster_count"), (int, float))
|