From 2fcd29b39ebc6015356ee619ec4ecef0bdabafb0 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 29 Apr 2026 14:53:48 +0200 Subject: [PATCH] Fix test_core fixture after connectivity rework (#6783) #6765 renamed Supervisor.check_connectivity to check_and_update_connectivity, but the mocked_setup_loads fixture in tests/test_core.py still patched the old name. The patch.object call raised AttributeError at fixture setup, erroring out the test_setup_app_file_read_error_not_captured test before it could run. Update the patch target to the new method name so Core.setup() sees an AsyncMock for the connectivity probe again. Co-authored-by: Claude Opus 4.7 (1M context) --- tests/test_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_core.py b/tests/test_core.py index 102aa7b0c..0c243baac 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -188,7 +188,7 @@ def mocked_setup_loads(coresys: CoreSys): """Replace all load() calls in Core.setup() with AsyncMock.""" with ( patch.object(coresys, "init_websession", new=AsyncMock()), - patch.object(Supervisor, "check_connectivity", new=AsyncMock()), + patch.object(Supervisor, "check_and_update_connectivity", new=AsyncMock()), patch.object(coresys.core, "_adjust_system_datetime", new=AsyncMock()), ): patches = [