Files
home-automation/tests/test_app.py
T

14 lines
343 B
Python
Raw Normal View History

2026-04-19 20:19:58 +02:00
from fastapi.testclient import TestClient
def test_app_starts(client: TestClient) -> None:
response = client.get("/")
assert response.status_code == 200
def test_status_endpoint(client: TestClient) -> None:
response = client.get("/status")
assert response.status_code == 200
assert response.json() == {"status": "ok"}