gendesign/backend/tests/test_ping.py
bot-backend dc8f3f2019 feat(backend): add /api/v1/ping liveness endpoint
Noop liveness probe returning {"pong": true}. Registered as a public
path (no Caddy/RBAC auth) like /health so external monitoring can reach
it. Adds unit test via FastAPI TestClient.

Closes #633
2026-05-29 00:25:15 +03:00

10 lines
250 B
Python

from fastapi.testclient import TestClient
from app.main import app
def test_ping() -> None:
client = TestClient(app)
response = client.get("/api/v1/ping")
assert response.status_code == 200
assert response.json() == {"pong": True}