MCPcopy Create free account
hub / github.com/Clarifai/clarifai-python / _assert_response_success

Function _assert_response_success

scripts/key_for_tests.py:18–21  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

16
17
18def _assert_response_success(response):
19 assert "status" in response, f"Invalid response {response}"
20 assert "code" in response["status"], f"Invalid response {response}"
21 assert response["status"]["code"] == 10000, f"Invalid response {response}"
22
23
24def _request(method, url, payload={}, headers={}):

Callers 2

loginFunction · 0.85
create_patFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected