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:
2026-05-27 18:10:06 -04:00
parent 42861142db
commit 8d73f553ca
+3 -15
View File
@@ -321,18 +321,6 @@ async def test_list_events_excludes_timed_event_that_already_ended():
assert results == []
@pytest.mark.asyncio
async def test_tools_calendar_always_available():
"""Calendar tools must appear in get_tools_for_user even without CalDAV."""
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
# test_tools_calendar_always_available removed in Phase 8 along with the
# services/tools/ LLM-tool layer. Event CRUD is now exposed via MCP tools
# (see tests/test_mcp_tool_events.py for coverage).