test: drop test_tools_calendar_always_available
Tested that services/tools/_registry exposed event tools to the LLM tool layer. That layer was removed in Phase 8 commit 91bafb6; event CRUD is now covered via the MCP tools in test_mcp_tool_events.py.
This commit is contained in:
@@ -321,18 +321,6 @@ async def test_list_events_excludes_timed_event_that_already_ended():
|
|||||||
assert results == []
|
assert results == []
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
# test_tools_calendar_always_available removed in Phase 8 along with the
|
||||||
async def test_tools_calendar_always_available():
|
# services/tools/ LLM-tool layer. Event CRUD is now exposed via MCP tools
|
||||||
"""Calendar tools must appear in get_tools_for_user even without CalDAV."""
|
# (see tests/test_mcp_tool_events.py for coverage).
|
||||||
with patch("fabledassistant.services.tools._registry.is_caldav_configured", new_callable=AsyncMock) as mock_configured, \
|
|
||||||
patch("fabledassistant.services.settings.get_setting", new_callable=AsyncMock) as mock_setting:
|
|
||||||
mock_configured.return_value = False
|
|
||||||
mock_setting.return_value = "false"
|
|
||||||
from fabledassistant.services.tools import get_tools_for_user
|
|
||||||
tools = await get_tools_for_user(user_id=1)
|
|
||||||
tool_names = {t["function"]["name"] for t in tools}
|
|
||||||
assert "create_event" in tool_names
|
|
||||||
assert "list_events" in tool_names
|
|
||||||
assert "search_events" in tool_names
|
|
||||||
assert "update_event" in tool_names
|
|
||||||
assert "delete_event" in tool_names
|
|
||||||
|
|||||||
Reference in New Issue
Block a user