mirror of
https://github.com/Rarebuffalo/securelens-backend.git
synced 2026-06-19 07:00:30 +00:00
20 lines
489 B
Python
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
|