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() == { "code": 200, "msg": "success", "data": {"ok": True, "service": "miniapp-api"}, }