init: 初始化 dpb 桃育种系统代码库

前后端 + 后端 FastAPI 全量源码、部署脚本与文档。
This commit is contained in:
34047007@qq.com
2026-08-06 00:17:49 +08:00
commit b95053c52c
1469 changed files with 322298 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
"""应用入口测试 —— 健康检查接口返回码与响应体校验。
"""
from fastapi.testclient import TestClient
def test_check_readiness(test_client: TestClient) -> None:
response = test_client.get("/common/health/ready/")
assert response.status_code == 200
body = response.json()
assert body["success"] is True
assert body["data"] is not None
def test_check_health(test_client: TestClient) -> None:
response = test_client.get("/common/health/check/")
assert response.status_code == 200
body = response.json()
assert body["success"] is True
assert body["code"] == 0
assert body["data"]["status"] == 1