stackchain-dashboard/tests/test_health.py
timmy 20a6820d9a
All checks were successful
CI / lint (pull_request) Successful in 9s
CI / build-frontend (pull_request) Successful in 5s
feat: add independent dashboard health endpoint (#26)
2026-08-05 03:02:51 +00:00

7 lines
267 B
Python

from src.main import app, health
def test_health_endpoint_reports_service_liveness_without_gitea_access():
assert any(getattr(route, "path", None) == "/healthz" for route in app.routes)
assert health() == {"status": "ok", "service": "stackchain-dashboard"}