31 lines
1.1 KiB
Python
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"]
|