MCPcopy Create free account
hub / github.com/Tong89/smartNode / test_envelope_code_zero

Method test_envelope_code_zero

tests/test_api.py:139–141  ·  view source on GitHub ↗

ok() 包络响应 code 应为 0。

(self, client)

Source from the content-addressed store, hash-verified

137 assert client.get("/api/system_info").status_code == 200
138
139 def test_envelope_code_zero(self, client):
140 """ok() 包络响应 code 应为 0。"""
141 assert _json(client.get("/api/system_info")).get("code") == 0
142
143 def test_data_field_is_dict(self, client):
144 body = _json(client.get("/api/system_info"))

Callers

nothing calls this directly

Calls 2

_jsonFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected