fix(student-tests):lab4 Idempotency-Key in foreign-chat message test
This commit is contained in:
@@ -53,8 +53,8 @@ def main():
|
||||
# --- чужой чат ---
|
||||
c.call('GET', path, 404, actor=eve)
|
||||
c.call('GET', path + '/messages', 404, actor=eve)
|
||||
c.call('POST', path + '/messages', 404, actor=eve, body={'text': 'чужое'})
|
||||
|
||||
c.call('POST', path + '/messages', 404, actor=eve, body={'text': 'чужое'},
|
||||
headers={'Idempotency-Key': uuid.uuid4().hex})
|
||||
# --- чат без создателя в member_ids ---
|
||||
c.call('POST', '/api/v1/chats', 400, actor=alice,
|
||||
body={'title': 'Без меня', 'member_ids': [bob['id']]})
|
||||
|
||||
Reference in New Issue
Block a user