Spaces:
Sleeping
Sleeping
File size: 490 Bytes
ff1843c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | """Basic smoke check for API health endpoint."""
from pathlib import Path
import sys
from fastapi.testclient import TestClient
sys.path.append(str(Path(__file__).resolve().parents[1] / "app" / "backend"))
from app.main import create_app
if __name__ == "__main__":
client = TestClient(create_app())
response = client.get("/api/health")
if response.status_code != 200:
raise SystemExit(f"health failed: {response.status_code} {response.text}")
print("smoke_ok")
|