from fastapi.testclient import TestClient from api.main import app client = TestClient(app) def test_context_analysis(): message = "I want to see the sentiment distribution of divya dhakal." response = client.get("/api/analytics-chatbot", params={"msg": message}) assert response.status_code == 200