feat: stage0 — init Python package, FastAPI health endpoint, tests

This commit is contained in:
Yuzviak
2026-03-22 22:10:09 +02:00
parent 6a48dd29fd
commit 6ba883f4d6
6 changed files with 124 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
"""Tests for the health endpoint."""
import pytest
from httpx import ASGITransport, AsyncClient
from gps_denied.app import app
@pytest.mark.asyncio
async def test_health_returns_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"}