MCPcopy
hub / github.com/aio-libs/aiohttp / test_format_task_get

Function test_format_task_get

tests/test_client_functional.py:899–911  ·  view source on GitHub ↗
(aiohttp_server)

Source from the content-addressed store, hash-verified

897
898
899async def test_format_task_get(aiohttp_server) -> None:
900 async def handler(request):
901 return web.Response(body=b"OK")
902
903 app = web.Application()
904 app.router.add_route("GET", "/", handler)
905 server = await aiohttp_server(app)
906 client = aiohttp.ClientSession()
907 task = asyncio.create_task(client.get(server.make_url("/")))
908 assert f"{task}".startswith("<Task pending")
909 resp = await task
910 resp.close()
911 await client.close()
912
913
914async def test_str_params(aiohttp_client) -> None:

Callers

nothing calls this directly

Calls 6

getMethod · 0.95
closeMethod · 0.95
aiohttp_serverFunction · 0.85
add_routeMethod · 0.45
make_urlMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…