From dfa18b4b6abf47ad144756aae776a2cf5d139da9 Mon Sep 17 00:00:00 2001 From: Chris Talkington Date: Sat, 22 Aug 2020 18:31:53 -0500 Subject: [PATCH] Fix unmocked calls in melcloud (#39170) * fix unmocked calls in melcloud * Update test_config_flow.py * Update test_config_flow.py * Update test_config_flow.py --- tests/components/melcloud/test_config_flow.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/components/melcloud/test_config_flow.py b/tests/components/melcloud/test_config_flow.py index e6b36306986..ab3d16a0d6a 100644 --- a/tests/components/melcloud/test_config_flow.py +++ b/tests/components/melcloud/test_config_flow.py @@ -16,7 +16,9 @@ from tests.common import MockConfigEntry @pytest.fixture def mock_login(): """Mock pymelcloud login.""" - with patch("pymelcloud.login") as mock: + with patch( + "homeassistant.components.melcloud.config_flow.pymelcloud.login" + ) as mock: mock.return_value = "test-token" yield mock @@ -24,7 +26,9 @@ def mock_login(): @pytest.fixture def mock_get_devices(): """Mock pymelcloud get_devices.""" - with patch("pymelcloud.get_devices") as mock: + with patch( + "homeassistant.components.melcloud.config_flow.pymelcloud.get_devices" + ) as mock: mock.return_value = { pymelcloud.DEVICE_TYPE_ATA: [], pymelcloud.DEVICE_TYPE_ATW: [],