Files
董宏凯andCursor 5e953c9fcb feat(report-collaboration): complete RC-BE-015–018 backend, eval suite, and MySQL sync
Ship report rewrite/version APIs, security budget and audit persistence, AgentScope worker wiring, and the 20-task quality eval harness so the frontend can integrate against a stable contract once enabled in config.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 17:32:15 +08:00

31 lines
1.1 KiB
Python

"""Feature-flag defaults for the report-collaboration workbench."""
from __future__ import annotations
from deerflow.config.app_config import AppConfig
from deerflow.config.report_collaboration_config import ReportCollaborationConfig
def test_report_collaboration_defaults_disabled() -> None:
config = ReportCollaborationConfig()
assert config.enabled is False
assert config.worker_enabled is False
assert "web_search" in config.allowed_tools
assert config.intent_confirmation_threshold == 0.8
def test_app_config_loads_report_collaboration_section() -> None:
config = AppConfig.model_validate(
{
"sandbox": {"use": "deerflow.sandbox.local:LocalSandboxProvider"},
"report_collaboration": {
"enabled": False,
"max_team_members": 6,
"allowed_tools": ["web_search"],
},
}
)
assert config.report_collaboration.enabled is False
assert config.report_collaboration.max_team_members == 6
assert config.report_collaboration.allowed_tools == ["web_search"]