MCPcopy Create free account
hub / github.com/ZyphrZero/z.ai2api_python / fake_create_session

Function fake_create_session

tests/test_guest_pool_concurrency.py:75–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 counter = 0
74
75 async def fake_create_session() -> GuestSession:
76 nonlocal counter
77 counter += 1
78 return _make_session(f"guest-{counter}", str(counter))
79
80 monkeypatch.setattr(pool, "_create_session", fake_create_session)
81 monkeypatch.setattr(pool, "_maintenance_loop", AsyncMock(return_value=None))

Callers

nothing calls this directly

Calls 1

_make_sessionFunction · 0.70

Tested by

no test coverage detected