feature: create multitasking
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
"""
|
||||
Tests for system endpoints (health check).
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
from httpx import AsyncClient
|
||||
|
||||
|
||||
class TestSystemEndpoints:
|
||||
"""Tests for GET /api/ping/."""
|
||||
|
||||
async def test_ping_returns_ok(self, async_client: AsyncClient):
|
||||
"""Test health check endpoint returns ok status."""
|
||||
response = await async_client.get("/api/ping/")
|
||||
|
||||
assert response.status_code == 200
|
||||
assert response.json() == {"status": "ok"}
|
||||
|
||||
async def test_ping_no_auth_required(self, async_client: AsyncClient):
|
||||
"""Test health check endpoint works without authentication."""
|
||||
# async_client has no auth header set
|
||||
response = await async_client.get("/api/ping/")
|
||||
|
||||
assert response.status_code == 200
|
||||
Reference in New Issue
Block a user