From 4de124cdd5586c566db7351400e8cabd3d3075bc Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Fri, 21 Apr 2023 20:44:14 +0200 Subject: [PATCH] Follow up on comments on changes bootstrap tests (#91803) * Remove commented code * Add comment to explain mock * typo --- tests/test_bootstrap.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_bootstrap.py b/tests/test_bootstrap.py index be01a4eeb0d..c317bcaae35 100644 --- a/tests/test_bootstrap.py +++ b/tests/test_bootstrap.py @@ -886,8 +886,10 @@ async def test_bootstrap_dependencies( dependencies=["file_upload", "http"], ), ) + + # 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 mqtt_integration._import_platform = Mock() - # mqtt_integration.async_migrate = AsyncMock(return_value=False) integrations = { "mqtt": {