Files
wehub-resource-sync 8f10353f0c
CI / lint (push) Has been cancelled
CI / js-syntax (push) Successful in 10m24s
CI / deps-audit (push) Has been cancelled
CI / test (push) Failing after 24m55s
CI / sast-bandit (push) Failing after 11m13s
CI / trivy (push) Failing after 9m32s
Docker Publish / build-and-push (push) Failing after 34m3s
chore: import upstream snapshot with attribution
2026-07-13 12:32:09 +08:00

20 lines
588 B
Python

from __future__ import annotations
from fastapi.testclient import TestClient
def test_health_endpoints_report_ok():
from app.main import app
with TestClient(app) as client:
for path in ("/health", "/api/health"):
r = client.get(path)
assert r.status_code == 200
body = r.json()
assert body["name"] == "StemDeck"
assert body["status"] == "ok"
assert body["version"]
assert "ffmpeg_configured" in body
assert "jobs_dir" not in body
assert "data_dir" not in body