This commit is contained in:
Sun Tao 2025-09-19 13:00:47 +08:00
parent 7ca248552e
commit f0081a54ac
11 changed files with 403 additions and 37 deletions

View file

@ -672,7 +672,7 @@ class TestAgentFactoryFunctions:
patch('app.utils.agent.TwitterToolkit') as mock_twitter_toolkit, \
patch('app.utils.agent.LinkedInToolkit') as mock_linkedin_toolkit, \
patch('app.utils.agent.RedditToolkit') as mock_reddit_toolkit, \
patch('app.utils.agent.NotionMCPToolkit') as mock_notion_toolkit, \
patch('app.utils.agent.NotionMCPToolkit') as mock_notion_mcp_toolkit, \
patch('app.utils.agent.GoogleGmailMCPToolkit') as mock_gmail_toolkit, \
patch('app.utils.agent.GoogleCalendarToolkit') as mock_calendar_toolkit, \
patch('app.utils.agent.HumanToolkit') as mock_human_toolkit, \
@ -684,7 +684,7 @@ class TestAgentFactoryFunctions:
mock_twitter_toolkit.get_can_use_tools.return_value = []
mock_linkedin_toolkit.get_can_use_tools.return_value = []
mock_reddit_toolkit.get_can_use_tools.return_value = []
mock_notion_toolkit.get_can_use_tools = AsyncMock(return_value=[])
mock_notion_mcp_toolkit.get_can_use_tools = AsyncMock(return_value=[])
mock_gmail_toolkit.get_can_use_tools = AsyncMock(return_value=[])
mock_calendar_toolkit.get_can_use_tools.return_value = []
mock_human_toolkit.get_can_use_tools.return_value = []