Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Update test_openapi.py

Jeremiah Lowinee059b02b66e
diff --git a/tests/client/test_openapi.py b/tests/client/test_openapi.py
index e9b704ece..0a05bb00d 100644
--- a/tests/client/test_openapi.py
+++ b/tests/client/test_openapi.py
@@ -170,15 +170,6 @@ class TestClientHeaders:
headers = json.loads(result[0].text)
assert headers["x-test"] == "test-123"
- # async def test_certain_client_headers_are_stripped(self, shttp_server: str):
- # async with Client(
- # transport=StreamableHttpTransport(shttp_server, headers={"host": "1.2.3.4"})
- # ) as client:
- # result = await client.read_resource("resource://get_headers_headers_get")
- # assert isinstance(result[0], TextResourceContents)
- # headers = json.loads(result[0].text)
- # assert "host" not in headers
-
async def test_client_overrides_server_headers(self, shttp_server: str):
async with Client(
transport=StreamableHttpTransport(