MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / test_custom_parameters

Function test_custom_parameters

tests/shared/test_httpx_utils.py:16–24  ·  view source on GitHub ↗

Test custom headers and timeout are set correctly.

()

Source from the content-addressed store, hash-verified

14
15
16def test_custom_parameters():
17 """Test custom headers and timeout are set correctly."""
18 headers = {"Authorization": "Bearer token"}
19 timeout = httpx.Timeout(60.0)
20
21 client = create_mcp_http_client(headers, timeout)
22
23 assert client.headers["Authorization"] == "Bearer token"
24 assert client.timeout.connect == 60.0

Callers

nothing calls this directly

Calls 1

create_mcp_http_clientFunction · 0.90

Tested by

no test coverage detected