Files
mtusi2026lab2/tests/helpers.py
T
vozzhin 1dd701be2b
Skeleton contracts / contracts (pull_request) Canceled after 0s
ЛР 2: мессенджер на PostgreSQL и сессии в Redis
2026-10-23 12:16:56 +03:00

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']