From 443b11f2879fa75b27c2ad9d4940fabbaa48282f Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Fri, 17 Apr 2026 15:15:01 -0400 Subject: [PATCH] fix(tests): patch get_setting at source module, not lazy import site Co-Authored-By: Claude Opus 4.6 --- tests/test_events_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_events_service.py b/tests/test_events_service.py index 73d05ff..bf34538 100644 --- a/tests/test_events_service.py +++ b/tests/test_events_service.py @@ -128,7 +128,7 @@ async def test_update_event_fires_caldav_push(): 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.tools._registry.get_setting", new_callable=AsyncMock) as mock_setting: + 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