14 lines
358 B
Python
14 lines
358 B
Python
|
|
from fastapi.testclient import TestClient
|
||
|
|
|
||
|
|
|
||
|
|
def test_health(client: TestClient) -> None:
|
||
|
|
r = client.get("/health")
|
||
|
|
assert r.status_code == 200
|
||
|
|
assert r.json()["status"] == "ok"
|
||
|
|
assert r.json()["service"] == "onGuard24"
|
||
|
|
|
||
|
|
|
||
|
|
def test_health_api_v1(client: TestClient) -> None:
|
||
|
|
r = client.get("/api/v1/health")
|
||
|
|
assert r.status_code == 200
|