generated from coulomb/repo-seed
17 lines
430 B
Python
17 lines
430 B
Python
from fastapi.testclient import TestClient
|
|
|
|
|
|
def test_healthz(app):
|
|
response = TestClient(app).get("/healthz")
|
|
|
|
assert response.status_code == 200
|
|
assert response.json()["status"] == "ok"
|
|
assert response.json()["service"] == "core-hub"
|
|
|
|
|
|
def test_readyz(app):
|
|
response = TestClient(app).get("/readyz")
|
|
|
|
assert response.status_code == 200
|
|
assert response.json()["checks"]["database_url"] == "configured"
|