ЛР 2: мессенджер на PostgreSQL и сессии в Redis
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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']
|
||||
Reference in New Issue
Block a user