12 lines
266 B
Python
12 lines
266 B
Python
|
|
import pytest
|
||
|
|
from httpx import AsyncClient
|
||
|
|
|
||
|
|
from .conftest import client
|
||
|
|
|
||
|
|
@pytest.mark.anyio
|
||
|
|
async def test_healthcheck(client: AsyncClient):
|
||
|
|
resp = await client.get("/healthcheck")
|
||
|
|
|
||
|
|
assert resp.status_code == 200
|
||
|
|
assert resp.json() == {"status": "ok"}
|