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

Function create_session

tests/test_client_session.py:48–58  ·  view source on GitHub ↗
(loop)

Source from the content-addressed store, hash-verified

46
47@pytest.fixture
48def create_session(loop):
49 session = None
50
51 async def maker(*args, **kwargs):
52 nonlocal session
53 session = ClientSession(*args, loop=loop, **kwargs)
54 return session
55
56 yield maker
57 if session is not None:
58 loop.run_until_complete(session.close())
59
60
61@pytest.fixture

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected