trygithubactions / tests /test_analytics_chatbot.py
subashpoudel's picture
Implemented the analytics too in orchestrator
8ce97f0
raw
history blame
303 Bytes
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=message)
assert response.status_code == 200