good release 2.0 code name: chiki-puki
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-08-31 22:28:24 +01:00
parent 53883754b5
commit b05a6165aa
19 changed files with 97 additions and 219 deletions

View File

@@ -2,8 +2,7 @@ import pytest
from httpx import AsyncClient, ASGITransport
from app.main import app
# Убираем async def и yield. Это будет обычная, синхронная фикстура,
# которая создает асинхронный клиент.
# Убираем async def и yield чтобы было ок :)
@pytest.fixture
def client() -> AsyncClient:
transport = ASGITransport(app=app)

View File

View File

@@ -1,7 +1,7 @@
import pytest
@pytest.mark.asyncio
async def test_health_check(client): # <-- client - это теперь сам AsyncClient
async def test_health_check(client): # <-- client - это сам AsyncClient
async with client: # <-- Используем async with для управления контекстом
response = await client.get("/")