初始化
This commit is contained in:
1 parent
34474bd5fc
commit
b638b541d0
3008 files changed
+837699
No files matched your search
@@ -0,0 +1,30 @@
|
||||
"""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"]
|
||||
Reference in new issue
Block a user