14 lines
381 B
Python
14 lines
381 B
Python
|
|
"""Тесты для health endpoint."""
|
||
|
|
|
||
|
|
import pytest
|
||
|
|
|
||
|
|
|
||
|
|
@pytest.mark.asyncio
|
||
|
|
async def test_health(client):
|
||
|
|
"""Проверка что health endpoint возвращает ok."""
|
||
|
|
response = await client.get("/api/health")
|
||
|
|
assert response.status_code == 200
|
||
|
|
data = response.json()
|
||
|
|
assert data["status"] == "ok"
|
||
|
|
assert data["service"] == "freelancer-match"
|