mirror of
https://github.com/Rarebuffalo/securelens-backend.git
synced 2026-06-19 07:00:30 +00:00
updated the architecture
This commit is contained in:
19
tests/test_health.py
Normal file
19
tests/test_health.py
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
Reference in New Issue
Block a user