Files
mtusi2026lab2/tests/helpers.py
T

10 lines
235 B
Python

def create_chat(client, actor, title):
return client.call(
'POST',
'/api/v1/chats',
201,
actor=actor,
body={'title': title, 'member_ids': [actor['id']]},
schema='Chat',
)['json']