mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-07-12 08:06:36 +01:00
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) <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user