File size: 212 Bytes
e1d6e8a |
1 2 3 4 5 6 7 8 9 10 |
from fastapi.testclient import TestClient
from src.app import app
client = TestClient(app)
def test_health():
r = client.get("/health")
assert r.status_code == 200
assert r.json()["status"] == "ok"
|