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

Function make_user

backend/tests/test_agent_delete_api.py:111–123  ·  view source on GitHub ↗
(**overrides)

Source from the content-addressed store, hash-verified

109
110
111def make_user(**overrides):
112 values = {
113 "id": uuid.uuid4(),
114 "username": "alice",
115 "email": "alice@example.com",
116 "password_hash": "hashed",
117 "display_name": "Alice",
118 "role": "member",
119 "tenant_id": uuid.uuid4(),
120 "is_active": True,
121 }
122 values.update(overrides)
123 return User(**values)
124
125
126def make_agent(creator_id: uuid.UUID, **overrides):

Calls 2

UserClass · 0.90
updateMethod · 0.80

Tested by

no test coverage detected