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

Function _make_session

tests/test_guest_session_pool.py:10–15  ·  view source on GitHub ↗
(user_id: str, token_suffix: str)

Source from the content-addressed store, hash-verified

8
9
10def _make_session(user_id: str, token_suffix: str) -> GuestSession:
11 return GuestSession(
12 token=f"token-{token_suffix}",
13 user_id=user_id,
14 username=f"Guest-{user_id}",
15 )
16
17
18@pytest.mark.asyncio

Calls 1

GuestSessionClass · 0.90

Tested by

no test coverage detected