增加风控列表总数并优化站内提醒
This commit is contained in:
@@ -355,7 +355,7 @@ def test_list_endpoints_follow_the_documented_envelope(monkeypatch) -> None:
|
||||
|
||||
assert isinstance(body["data"], list), "data 必须是纯数组"
|
||||
assert "items" not in body["data"] if isinstance(body["data"], dict) else True
|
||||
assert set(body["meta"]) == {"trace_id", "next_cursor", "has_more"}
|
||||
assert set(body["meta"]) == {"trace_id", "next_cursor", "has_more", "total", "page_size"}
|
||||
assert set(body) == {"data", "meta"}, "不得增加其他顶层字段"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user