File size: 463 Bytes
821ccae
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
282bc7c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Tests for the combined deploy entrypoint (Session 5).

Ensures the API is reachable under the /api prefix the frontend expects when
both are served from one origin (Hugging Face Space).
"""

from fastapi.testclient import TestClient

from app.server import root

client = TestClient(root)


def test_api_is_mounted_under_api_prefix():
    response = client.get("/api/health")
    assert response.status_code == 200
    assert response.json()["status"] == "ok"