aboutsummaryrefslogtreecommitdiffstats
path: root/thallium-backend/tests/test_app.py
blob: 254bb1804714d2e8738632177443b105d76a4b22 (plain) (blame)
1
2
3
4
5
6
7
8
9
import pytest
from httpx import AsyncClient


@pytest.mark.asyncio()
async def test_heartbeat(http_client: AsyncClient) -> None:
    """Ensure the heartbeat works."""
    resp = await http_client.get("/heartbeat")
    assert resp.json() == {"detail": "I am alive!"}