Skip to content

Commit 84d4f9e

Browse files
Fix Python resume_session override test to not require auth (#918)
1 parent 05f0253 commit 84d4f9e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/test_client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,12 @@ async def test_resume_session_sends_overrides_built_in_tool(self):
213213
)
214214

215215
captured = {}
216-
original_request = client._client.request
217216

218217
async def mock_request(method, params):
219218
captured[method] = params
220-
return await original_request(method, params)
219+
# Return a fake response instead of calling the real CLI,
220+
# which would fail without auth credentials.
221+
return {"sessionId": params["sessionId"]}
221222

222223
client._client.request = mock_request
223224

0 commit comments

Comments
 (0)