MCPcopy Index your code
hub / github.com/github/copilot-sdk / mock_request

Method mock_request

python/test_client.py:1119–1128  ·  view source on GitHub ↗
(method, params, **kwargs)

Source from the content-addressed store, hash-verified

1117 captured = {}
1118
1119 async def mock_request(method, params, **kwargs):
1120 captured[method] = params
1121 if method == "session.create":
1122 sid = params.get("sessionId") or "session-id"
1123 result = {"sessionId": sid, "workspacePath": None}
1124 callback = kwargs.get("on_response_inline")
1125 if callback is not None:
1126 callback(result)
1127 return result
1128 return {}
1129
1130 client._client.request = mock_request
1131

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected