release(main): 集成 nginx 移除里程碑
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user