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

Function fake_create_session

tests/test_guest_session_pool.py:25–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 create_calls = 0
24
25 async def fake_create_session() -> GuestSession:
26 nonlocal create_calls
27 create_calls += 1
28 return _make_session("duplicate-user", str(create_calls))
29
30 monkeypatch.setattr(pool, "_create_session", fake_create_session)
31

Callers

nothing calls this directly

Calls 1

_make_sessionFunction · 0.70

Tested by

no test coverage detected