From fc0c8bf1131e21459663243508f6f289ddf82dbd Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Sat, 22 Apr 2023 13:40:38 +0200 Subject: [PATCH] Improve comment on patching the _import method in test bootstrap dependencies test (#91848) --- tests/test_bootstrap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_bootstrap.py b/tests/test_bootstrap.py index c317bcaae35..26eef47273f 100644 --- a/tests/test_bootstrap.py +++ b/tests/test_bootstrap.py @@ -887,8 +887,8 @@ async def test_bootstrap_dependencies( ), ) - # We mock the MQTT integration and integrations that depend on it - # to make sure that core tests will not fail when non core components are changed + # We patch the _import platform method to avoid loading the platform module + # to avoid depending on non core components in the tests. mqtt_integration._import_platform = Mock() integrations = {