Files
home-automation-backend/tests/test_health.py

12 lines
229 B
Python

from fastapi.testclient import TestClient
from app.main import app
client = TestClient(app)
def test_health() -> None:
r = client.get("/api/health")
assert r.status_code == 200
assert r.json() == {"status": "ok"}