MCPcopy Create free account
hub / github.com/Pometry/Raphtory / assert_successful_response

Function assert_successful_response

python/tests/test_auth.py:74–77  ·  view source on GitHub ↗
(response: requests.Response)

Source from the content-addressed store, hash-verified

72
73
74def assert_successful_response(response: requests.Response):
75 assert "errors" not in response.json()
76 assert type(response.json()["data"]) == dict
77 assert len(response.json()["data"]) == 1
78
79
80# TODO: implement this so we can use the with sintax

Callers 6

test_default_read_accessFunction · 0.85
test_update_graphFunction · 0.85
test_mutationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected