fix(student-tests):lab4 Idempotency-Key in foreign-chat message test

This commit is contained in:
Голиков Maximillian Антон
2026-10-24 06:34:00 +03:00
parent 4dfaf28082
commit 1110f77112
+2 -2
View File
@@ -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']]})