From f4408a99ab7e3aea83407998edf0bc233311fe4b Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Thu, 19 Sep 2024 08:29:33 +0900 Subject: [PATCH] Fix tests --- tests/scenario_tests/test_events_assistant.py | 4 +--- tests/scenario_tests_async/test_events_assistant.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/scenario_tests/test_events_assistant.py b/tests/scenario_tests/test_events_assistant.py index 16d85a4ad..ed3026d12 100644 --- a/tests/scenario_tests/test_events_assistant.py +++ b/tests/scenario_tests/test_events_assistant.py @@ -45,9 +45,7 @@ def start_thread(say: Say, set_suggested_prompts: SetSuggestedPrompts, context: assert context.channel_id == "D111" assert context.thread_ts == "1726133698.626339" say("Hi, how can I help you today?") - set_suggested_prompts( - title="New chat", prompts=[{"title": "What does SLACK stand for?", "message": "What does SLACK stand for?"}] - ) + set_suggested_prompts(prompts=[{"title": "What does SLACK stand for?", "message": "What does SLACK stand for?"}]) state["called"] = True @assistant.thread_context_changed diff --git a/tests/scenario_tests_async/test_events_assistant.py b/tests/scenario_tests_async/test_events_assistant.py index 6fdb994b3..f8ed97af9 100644 --- a/tests/scenario_tests_async/test_events_assistant.py +++ b/tests/scenario_tests_async/test_events_assistant.py @@ -59,7 +59,7 @@ async def start_thread(say: AsyncSay, set_suggested_prompts: AsyncSetSuggestedPr assert context.thread_ts == "1726133698.626339" await say("Hi, how can I help you today?") await set_suggested_prompts( - title="New chat", prompts=[{"title": "What does SLACK stand for?", "message": "What does SLACK stand for?"}] + prompts=[{"title": "What does SLACK stand for?", "message": "What does SLACK stand for?"}] ) state["called"] = True