MCPcopy
hub / github.com/modelcontextprotocol/python-sdk / initialized_sse_client_session

Function initialized_sse_client_session

tests/shared/test_sse.py:197–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195
196@pytest.fixture
197async def initialized_sse_client_session() -> AsyncGenerator[ClientSession, None]:
198 factory = in_process_client_factory(make_server_app())
199 async with sse_client(f"{BASE_URL}/sse", httpx_client_factory=factory) as streams:
200 async with ClientSession(*streams) as session:
201 await session.initialize()
202 yield session
203
204
205@pytest.mark.anyio

Callers

nothing calls this directly

Calls 5

sse_clientFunction · 0.90
ClientSessionClass · 0.90
make_server_appFunction · 0.85
initializeMethod · 0.45

Tested by

no test coverage detected