From acbff854f2da96bddcaede1385e7fefeba0fb34b Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Thu, 9 Apr 2026 19:45:45 -0500 Subject: initial commit --- tests/test_health.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/test_health.py (limited to 'tests/test_health.py') diff --git a/tests/test_health.py b/tests/test_health.py new file mode 100644 index 0000000..763bc2b --- /dev/null +++ b/tests/test_health.py @@ -0,0 +1,15 @@ +from fastapi.testclient import TestClient + +from srht_contrib.main import create_app + + +def test_health_endpoint() -> None: + with TestClient(create_app()) as client: + response = client.get("/health") + + assert response.status_code == 200 + assert response.json() == {"status": "ok"} + + +def test_scheduler_is_disabled_by_default(client: TestClient) -> None: + assert client.app.state.scheduler is None -- cgit v1.2.3