Files
WonderQ-Project/WonderQ-Admin/tests/test_app.py
2026-08-11 19:19:11 +08:00

10 lines
287 B
Python

from fastapi.testclient import TestClient
from app.main import create_app
def test_health_endpoint():
client = TestClient(create_app())
response = client.get("/health")
assert response.status_code == 200
assert response.json() == {"ok": True, "service": "miniapp-api"}