MCPcopy
hub / github.com/dataelement/Clawith / make_user

Function make_user

backend/tests/test_wecom_channel_api.py:41–53  ·  view source on GitHub ↗
(**overrides)

Source from the content-addressed store, hash-verified

39
40
41def make_user(**overrides):
42 values = {
43 "id": uuid.uuid4(),
44 "username": "alice",
45 "email": "alice@example.com",
46 "password_hash": "old-hash",
47 "display_name": "Alice",
48 "role": "member",
49 "tenant_id": uuid.uuid4(),
50 "is_active": True,
51 }
52 values.update(overrides)
53 return User(**values)
54
55
56def make_channel(agent_id: uuid.UUID, *, connection_mode: str = "websocket") -> ChannelConfig:

Calls 2

UserClass · 0.90
updateMethod · 0.80

Tested by

no test coverage detected