feat: 建立可观测性、容量与恢复验证基线
This commit is contained in:
@@ -31,6 +31,7 @@ def test_health():
|
||||
def test_detect_ok():
|
||||
r = client.post("/detect", files={"file": ("a.png", TINY_PNG, "image/png")})
|
||||
assert r.status_code == 200
|
||||
assert r.headers.get("x-request-id")
|
||||
body = r.json()
|
||||
assert body["model"] == "mock"
|
||||
assert body["modelVersion"]
|
||||
|
||||
Reference in New Issue
Block a user