1
0
Fork 0
forked from sr2/cloud-api
cloud-api/test/test_healthcheck.py
luxferre 9d9ca0b907 minor: rename test client
client -> default_client

To allow for different clients. Primarily to allow different overrides for auth testing.
2026-06-03 13:54:30 +01:00

11 lines
290 B
Python

import pytest
from httpx import AsyncClient
from .conftest import default_client
@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"}