BuyingAgent/tests/unit/test_health_live.py

12 lines
284 B
Python
Raw Normal View History

from fastapi.testclient import TestClient
from app.main import app
client = TestClient(app)
def test_health_live_does_not_touch_the_database() -> None:
response = client.get("/health/live")
assert response.status_code == 200
assert response.json() == {"status": "ok"}