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

Function gen

tests/test_client_request.py:1117–1119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1115
1116async def test_data_stream(loop, buf, conn) -> None:
1117 async def gen():
1118 yield b"binary data"
1119 yield b" result"
1120
1121 req = ClientRequest("POST", URL("http://python.org/"), data=gen(), loop=loop)
1122 assert req.chunked

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected