blob: 763bc2b8885555370ceba88b0fc6933e105b1716 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
|