feat(ui): Add UI toggles for available tools per-project
This commit is contained in:
17
tests/test_agent_capabilities.py
Normal file
17
tests/test_agent_capabilities.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import pytest
|
||||
|
||||
def test_agent_capabilities_config():
|
||||
# A dummy test to fulfill the Red Phase for Agent Capability Configuration.
|
||||
# The new function in gui.py should be get_active_tools() or we check the project dict.
|
||||
from project_manager import default_project
|
||||
|
||||
proj = default_project("test_proj")
|
||||
|
||||
# We expect 'agent' config to exist in a default project and list tools
|
||||
assert "agent" in proj
|
||||
assert "tools" in proj["agent"]
|
||||
|
||||
# By default, all tools should probably be True or defined
|
||||
tools = proj["agent"]["tools"]
|
||||
assert "run_powershell" in tools
|
||||
assert tools["run_powershell"] is True
|
||||
Reference in New Issue
Block a user