Files
marquiz-metrics/tests/test_main.py
13orlov 6fc14db51e
All checks were successful
continuous-integration/drone/push Build is passing
refactor(tests): Simplify test setup and fix client fixture
2025-08-23 22:36:23 +01:00

12 lines
438 B
Python

import pytest
@pytest.mark.asyncio
async def test_health_check(client): # <-- client - это теперь сам AsyncClient
async with client: # <-- Используем async with для управления контекстом
response = await client.get("/")
assert response.status_code == 200
assert response.json() == {
"status": "ok",
"message": "Welcome to Marquiz Metrica Connector!"
}