fastapi-template/tests/test_healthcheck.py
luxferre fc10307cc2
Some checks failed
ci / lint_and_test (push) Failing after 8s
tests: test against health check endpoint
2026-06-15 09:57:36 +01:00

10 lines
244 B
Python

import pytest
from httpx import AsyncClient
@pytest.mark.anyio
async def test_healthcheck(default_client: AsyncClient):
resp = await default_client.get("/healthcheck")
assert resp.status_code == 200
assert resp.json() == {"status": "ok"}