Files
securelens-backend/tests/test_health.py
2026-04-07 18:13:43 +05:30

20 lines
489 B
Python

import pytest
@pytest.mark.asyncio
async def test_root(async_client):
response = await async_client.get("/")
assert response.status_code == 200
data = response.json()
assert "running" in data["message"]
@pytest.mark.asyncio
async def test_health(async_client):
response = await async_client.get("/health")
assert response.status_code == 200
data = response.json()
assert data["status"] == "healthy"
assert "app" in data
assert "version" in data