(
proxy_test_server: Callable[[], Awaitable[mock.Mock]],
loop: asyncio.AbstractEventLoop,
)
| 538 | |
| 539 | @pytest.mark.xfail |
| 540 | async 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 |
nothing calls this directly
no test coverage detected