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

Function test_test_server_context_manager

tests/test_test_utils.py:294–301  ·  view source on GitHub ↗
(loop)

Source from the content-addressed store, hash-verified

292
293
294async def test_test_server_context_manager(loop) -> None:
295 app = _create_example_app()
296 async with TestServer(app, loop=loop) as server:
297 client = aiohttp.ClientSession(loop=loop)
298 resp = await client.head(server.make_url("/"))
299 assert resp.status == 200
300 resp.close()
301 await client.close()
302
303
304def test_client_unsupported_arg() -> None:

Callers

nothing calls this directly

Calls 6

headMethod · 0.95
closeMethod · 0.95
TestServerClass · 0.90
_create_example_appFunction · 0.85
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…