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

@@ -12,6 +12,8 @@ from pathlib import Path
import pytest
from src.client import DeerFlowClient, StreamEvent
# Skip entire module in CI or when no config.yaml exists
_skip_reason = None
if os.environ.get("CI"):
@@ -22,9 +24,6 @@ elif not Path(__file__).resolve().parents[2].joinpath("config.yaml").exists():
if _skip_reason:
pytest.skip(_skip_reason, allow_module_level=True)
from src.client import DeerFlowClient, StreamEvent
# ---------------------------------------------------------------------------
# Fixtures
# ---------------------------------------------------------------------------