14 lines
431 B
Python
14 lines
431 B
Python
from __future__ import annotations
|
|
import pytest
|
|
from httpx import AsyncClient
|
|
|
|
|
|
@pytest.mark.asyncio
|
|
async def test_root_endpoint_returns_running_status(async_client: AsyncClient) -> None:
|
|
response = await async_client.get("/")
|
|
assert response.status_code == 200
|
|
data = response.json()
|
|
assert data["status"] == "Acupedia Backend is Running"
|
|
assert data["version"] == "1.0.0"
|
|
assert "database_name" in data
|