12 lines
438 B
Python
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!"
|
|
} |