From d58da03e4032803659c7bb73ba31ad58b09db7e7 Mon Sep 17 00:00:00 2001 From: Omar Abdelwahab Date: Thu, 6 Nov 2025 11:07:21 -0800 Subject: [PATCH] fix: update test to use authorization parameter instead of headers For security reasons, reject Authorization header in headers dict and require use of the dedicated authorization parameter instead. --- tests/integration/responses/test_tool_responses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/responses/test_tool_responses.py b/tests/integration/responses/test_tool_responses.py index 3f1c35214..ce0e65b4b 100644 --- a/tests/integration/responses/test_tool_responses.py +++ b/tests/integration/responses/test_tool_responses.py @@ -260,7 +260,7 @@ def test_response_non_streaming_mcp_tool(compat_client, text_model_id, case, cap for tool in tools: if tool["type"] == "mcp": - tool["headers"] = {"Authorization": "Bearer test-token"} + tool["authorization"] = "test-token" response = compat_client.responses.create( model=text_model_id,