test(backend): add core logic unit tests for task/title/mcp (#936)

* test(backend): add core logic unit tests for task/title/mcp

* test(backend): fix lint issues in client test modules

---------

Co-authored-by: songyaolun <songyaolun@bytedance.com>
This commit is contained in:
YolenSong
2026-03-01 12:36:09 +08:00
committed by GitHub
parent f2123efdb9
commit 3d3ea84a57
5 changed files with 460 additions and 6 deletions

View File

@@ -10,8 +10,8 @@ import pytest
from langchain_core.messages import AIMessage, HumanMessage, ToolMessage # noqa: F401
from src.client import DeerFlowClient
from src.gateway.routers.memory import MemoryConfigResponse, MemoryStatusResponse
from src.gateway.routers.mcp import McpConfigResponse
from src.gateway.routers.memory import MemoryConfigResponse, MemoryStatusResponse
from src.gateway.routers.models import ModelResponse, ModelsListResponse
from src.gateway.routers.skills import SkillInstallResponse, SkillResponse, SkillsListResponse
from src.gateway.routers.uploads import UploadResponse
@@ -1011,8 +1011,6 @@ class TestScenarioAgentRecreation:
def test_different_model_triggers_rebuild(self, client):
"""Switching model_name between calls forces agent rebuild."""
mock_agent_1 = MagicMock(name="agent-v1")
mock_agent_2 = MagicMock(name="agent-v2")
agents_created = []
def fake_create_agent(**kwargs):