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

Function test_context_manager

tests/test_client_session.py:328–332  ·  view source on GitHub ↗
(connector, loop)

Source from the content-addressed store, hash-verified

326
327
328def test_context_manager(connector, loop):
329 with ClientSession(loop=loop, connector=connector) as session:
330 pass
331
332 assert session.closed
333
334
335def test_borrow_connector_loop(connector, create_session, loop):

Callers

nothing calls this directly

Calls 1

ClientSessionClass · 0.90

Tested by

no test coverage detected