| 123456789101112 |
- from __future__ import annotations
- def test_news_get_xrp_sentiment_shape():
- from src.trader_mcp.news_client import get_news_sentiment
- resp = get_news_sentiment("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))
|