feat(FN-004): merge fusion/fn-004
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
from fastapi.testclient import TestClient
|
||||
import pytest
|
||||
from httpx import AsyncClient
|
||||
|
||||
from app.config import settings
|
||||
from app.main import app
|
||||
|
||||
client = TestClient(app)
|
||||
|
||||
|
||||
def test_health_returns_ok() -> None:
|
||||
response = client.get("/health")
|
||||
@pytest.mark.asyncio
|
||||
async def test_health_returns_ok(client: AsyncClient) -> None:
|
||||
response = await client.get("/health")
|
||||
assert response.status_code == 200
|
||||
data = response.json()
|
||||
assert data["status"] == "ok"
|
||||
assert data["service"] == settings.app_name
|
||||
assert data["database"] == "connected"
|
||||
|
||||
Reference in New Issue
Block a user