@@ -228,7 +228,7 @@ async def test_project_conversation_messages_full_workflow(
228228 _first_message_id = data ["messageId" ]
229229
230230 assert mocked_notify_conversation_message_created .call_count == 1
231- kwargs = mocked_notify_conversation_message_created .await_args [ 1 ]
231+ kwargs = mocked_notify_conversation_message_created .call_args . kwargs
232232
233233 assert f"{ kwargs ['project_id' ]} " == user_project ["uuid" ]
234234 assert kwargs ["conversation_message" ].content == "My first message"
@@ -244,7 +244,7 @@ async def test_project_conversation_messages_full_workflow(
244244 _second_message_id = data ["messageId" ]
245245
246246 assert mocked_notify_conversation_message_created .call_count == 2
247- kwargs = mocked_notify_conversation_message_created .await_args [ 1 ]
247+ kwargs = mocked_notify_conversation_message_created .call_args . kwargs
248248
249249 assert user_project ["uuid" ] == f"{ kwargs ['project_id' ]} "
250250 assert kwargs ["conversation_message" ].content == "My second message"
@@ -276,7 +276,7 @@ async def test_project_conversation_messages_full_workflow(
276276 )
277277
278278 assert mocked_notify_conversation_message_updated .call_count == 1
279- kwargs = mocked_notify_conversation_message_updated .await_args [ 1 ]
279+ kwargs = mocked_notify_conversation_message_updated .call_args . kwargs
280280
281281 assert user_project ["uuid" ] == f"{ kwargs ['project_id' ]} "
282282 assert kwargs ["conversation_message" ].content == updated_content
@@ -312,7 +312,7 @@ async def test_project_conversation_messages_full_workflow(
312312 )
313313
314314 assert mocked_notify_conversation_message_deleted .call_count == 1
315- kwargs = mocked_notify_conversation_message_deleted .await_args [ 1 ]
315+ kwargs = mocked_notify_conversation_message_deleted .call_args . kwargs
316316
317317 assert f"{ kwargs ['project_id' ]} " == user_project ["uuid" ]
318318 assert f"{ kwargs ['conversation_id' ]} " == _conversation_id
@@ -410,7 +410,7 @@ async def test_project_conversation_messages_full_workflow(
410410 )
411411
412412 assert mocked_notify_conversation_message_deleted .call_count == 2
413- kwargs = mocked_notify_conversation_message_deleted .await_args [ 1 ]
413+ kwargs = mocked_notify_conversation_message_deleted .call_args . kwargs
414414
415415 assert f"{ kwargs ['project_id' ]} " == user_project ["uuid" ]
416416 assert f"{ kwargs ['conversation_id' ]} " == _conversation_id
0 commit comments