blob: c7c49374d6dce4e7fdd9b1fc069a8170418e072e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
from fastapi.testclient import TestClient
from src.app import fastapi_app
def test_heartbeat() -> None:
"""Ensure the heartbeat works."""
with TestClient(app=fastapi_app) as client:
assert client.get("/heartbeat").json() == {"detail": "I am alive!"}
|