feat: 移除仓库内 nginx 并拆分前端运行时

This commit is contained in:
Cheng Zhou
2026-03-30 21:02:51 +08:00
parent 7ccb8c20cc
commit 27ba5eabff
22 changed files with 287 additions and 160 deletions
+14
View File
@@ -62,6 +62,20 @@ async def test_register_creates_pending_user(client_and_db):
assert user.status == UserStatus.PENDING
@pytest.mark.asyncio
async def test_root_returns_service_metadata(client_and_db):
client, _ = client_and_db
resp = await client.get("/")
assert resp.status_code == 200
assert resp.json() == {
"service": "ctms-backend",
"status": "ok",
"health": "/health",
"docs": "/docs",
"api": "/api/v1",
}
@pytest.mark.asyncio
async def test_login_blocked_before_approval(client_and_db):
client, SessionLocal = client_and_db