From 968d58cba108e0f371022c7ab540374aa2ab13f4 Mon Sep 17 00:00:00 2001 From: Mattias Welponer Date: Mon, 25 Jun 2018 22:59:26 +0200 Subject: [PATCH] Remove a test for the hap --- .../components/homematicip_cloud/test_hap.py | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/tests/components/homematicip_cloud/test_hap.py b/tests/components/homematicip_cloud/test_hap.py index 1fa1291853f..1f67d425e07 100644 --- a/tests/components/homematicip_cloud/test_hap.py +++ b/tests/components/homematicip_cloud/test_hap.py @@ -27,27 +27,6 @@ async def test_hap_init(aioclient_mock): (entry, 'binary_sensor') -async def test_hap_setup_invalid_token(): - """Test we start config flow if username is no longer whitelisted.""" - from homematicip.base.base_connection import HmipConnectionError - - hass = Mock() - entry = Mock() - entry.data = { - hmipc.HMIPC_HAPID: 'ABC123', - hmipc.HMIPC_AUTHTOKEN: '123', - hmipc.HMIPC_NAME: 'hmip', - } - hap = hmipc.HomematicipHAP(hass, entry) - - with patch.object(hap, 'get_hap', - side_effect=HmipConnectionError): - assert await hap.async_setup() is False - - assert len(hass.async_add_job.mock_calls) == 0 - assert len(hass.config_entries.flow.async_init.mock_calls) == 0 - - async def test_reset_unloads_entry_if_setup(): """Test calling reset while the entry has been setup.""" hass = Mock()