""" Tests pour l'endpoint de santé /api/v2/health. """ import pytest from httpx import AsyncClient @pytest.mark.asyncio async def test_health_endpoint(client: AsyncClient): """Test que l'endpoint de santé retourne une réponse valide.""" response = await client.get("/api/v2/health") assert response.status_code == 200 data = response.json() # Vérifier la structure de la réponse assert "status" in data assert "database" in data @pytest.mark.asyncio async def test_root_endpoint(client: AsyncClient): """Test que la racine retourne les infos de l'API.""" response = await client.get("/") assert response.status_code == 200 data = response.json() assert "message" in data assert "version" in data assert "docs" in data