feature: create multitasking

This commit is contained in:
Daniil
2026-02-04 02:19:50 +03:00
parent 67e0f22b4f
commit a25bf623ea
24 changed files with 5227 additions and 21 deletions
@@ -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