trygithubactions / tests /test_orchestrator.py
subashpoudel's picture
Standardized test codes
4a45dbd
raw
history blame
332 Bytes
from fastapi.testclient import TestClient
from api.main import app
client = TestClient(app)
def test_orchestrator():
payload = {
"message":"Mention some popular influencers of nepal"
}
response = client.post("/api/orchestration", json=payload)
print(response.json())
assert response.status_code == 200