Improve comment on patching the _import method in test bootstrap dependencies test (#91848)

This commit is contained in:
Jan Bouwhuis 2023-04-22 13:40:38 +02:00 committed by GitHub
parent 624b8d1cbd
commit fc0c8bf113
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = {