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

Function create_session

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

Source from the content-addressed store, hash-verified

23
24@pytest.yield_fixture
25def create_session(loop):
26 session = None
27
28 def maker(*args, **kwargs):
29 nonlocal session
30 session = ClientSession(*args, loop=loop, **kwargs)
31 return session
32 yield maker
33 if session is not None:
34 session.close()
35
36
37@pytest.fixture

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected