bim-twin-viewer/backend/tests/test_health.py
warnason 97f5dfadae Add test suite and polish project documentation
- 7 pytest tests covering health, upload validation, API responses, schemas
- Updated README with architecture diagram, feature list, design decisions
- Live demo link and complete API reference
2026-04-27 10:53:53 +02:00

17 lines
484 B
Python

"""Test the health check endpoint."""
import pytest
from httpx import ASGITransport, AsyncClient
from app.main import app
@pytest.mark.asyncio
async def test_health_returns_ok():
"""Health endpoint returns status ok."""
transport = ASGITransport(app=app)
async with AsyncClient(transport=transport, base_url="http://test") as client:
response = await client.get("/health")
assert response.status_code == 200
assert response.json() == {"status": "ok"}