fix: backend improvements (customer health, tests, middleware, corpus)

This commit is contained in:
wlt
2026-06-24 10:38:26 +08:00
parent eb39cc1baa
commit ad329815fa
11 changed files with 122 additions and 77 deletions
+3 -2
View File
@@ -149,8 +149,9 @@ class TestPaymentAPI:
response = await client.post(
"/api/v1/payment/create-order",
headers=auth_headers,
json={"plan": "pro"},
json={"plan": "free"},
)
assert response.status_code == 200
data = response.json()
assert "prepay_id" in data or "order_id" in data or "url" in data
assert data["status"] == "ok"
assert data["plan"] == "free"