MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / xtest_proxy_https_send_body

Function xtest_proxy_https_send_body

tests/test_proxy_functional.py:540–555  ·  view source on GitHub ↗
(
    proxy_test_server: Callable[[], Awaitable[mock.Mock]],
    loop: asyncio.AbstractEventLoop,
)

Source from the content-addressed store, hash-verified

538
539@pytest.mark.xfail
540async def xtest_proxy_https_send_body(
541 proxy_test_server: Callable[[], Awaitable[mock.Mock]],
542 loop: asyncio.AbstractEventLoop,
543) -> None:
544 sess = aiohttp.ClientSession()
545 try:
546 proxy = await proxy_test_server()
547 proxy.return_value = {"status": 200, "body": b"1" * (2**20)}
548 url = "https://www.google.com.ua/search?q=aiohttp proxy"
549
550 async with sess.get(url, proxy=proxy.url) as resp:
551 body = await resp.read()
552
553 assert body == b"1" * (2**20)
554 finally:
555 await sess.close()
556
557
558@pytest.mark.xfail

Callers

nothing calls this directly

Calls 4

getMethod · 0.95
closeMethod · 0.95
proxy_test_serverFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected