left4me/components/l4d2-web-app/tests/test_health.py

11 lines
273 B
Python

from l4d2web.app import create_app
def test_health_endpoint() -> None:
app = create_app({"TESTING": True})
client = app.test_client()
response = client.get("/health")
assert response.status_code == 200
assert response.get_json() == {"status": "ok"}