Spaces:
Running
Running
Jeremiah Lowin commited on
Commit ·
37f3c8b
1
Parent(s): 80285d4
Update test_openapi.py
Browse files
tests/client/test_openapi.py
CHANGED
|
@@ -181,6 +181,9 @@ class TestClientHeaders:
|
|
| 181 |
assert headers["x-server"] == "test-abc"
|
| 182 |
|
| 183 |
async def test_client_headers_proxy(self, proxy_server: str):
|
|
|
|
|
|
|
|
|
|
| 184 |
async with Client(transport=StreamableHttpTransport(proxy_server)) as client:
|
| 185 |
await client.ping()
|
| 186 |
result = await client.read_resource("resource://get_headers_headers_get")
|
|
|
|
| 181 |
assert headers["x-server"] == "test-abc"
|
| 182 |
|
| 183 |
async def test_client_headers_proxy(self, proxy_server: str):
|
| 184 |
+
"""
|
| 185 |
+
Test that client headers are passed through the proxy to the remove server.
|
| 186 |
+
"""
|
| 187 |
async with Client(transport=StreamableHttpTransport(proxy_server)) as client:
|
| 188 |
await client.ping()
|
| 189 |
result = await client.read_resource("resource://get_headers_headers_get")
|