Files
marquiz-metrics/tests/test_main.py
13orlov 9e815b0619
Some checks failed
continuous-integration/drone/push Build is failing
feat(tests): Add test configuration and helpers
2025-08-23 22:17:53 +01:00

12 lines
427 B
Python

import pytest
# Тесты теперь не знают про 'app', они знают только про 'client'
@pytest.mark.asyncio
async def test_health_check(client): # <-- Получаем client как аргумент
response = await client.get("/")
assert response.status_code == 200
assert response.json() == {
"status": "ok",
"message": "Welcome to Marquiz Metrica Connector!"
}