CoolFace
Apppublic

kaan1233/bistelligence-api

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes
test_server_hang_2.py25 linesDownload Raw Back to root
1import asyncio2from fastapi.testclient import TestClient3from server import app4 5client = TestClient(app)6 7endpoints = [8    "/api/portfolio",9    "/api/watchlist",10    "/api/screener",11    "/api/ai-portfolio",12    "/api/algo-config"13]14 15print("Testing endpoints...")16for ep in endpoints:17    try:18        print(f"GET {ep}")19        res = client.get(ep, timeout=5)20        print("Result:", res.status_code)21    except Exception as e:22        print("Error:", e)23 24print("Done.")25