Skip to content

Commit

Permalink
Fix uncaught exceptions for mqtt (home-assistant#33547)
Browse files Browse the repository at this point in the history
now all mqtt tests pass
  • Loading branch information
ziv1234 authored Apr 2, 2020
1 parent 201e958 commit 8fbdc70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
1 change: 1 addition & 0 deletions tests/components/mqtt/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def mock_MQTT():
"""Make sure connection is established."""
with mock.patch("homeassistant.components.mqtt.MQTT") as mock_MQTT:
mock_MQTT.return_value.async_connect.return_value = mock_coro(True)
mock_MQTT.return_value.async_disconnect.return_value = mock_coro(True)
yield mock_MQTT


Expand Down
20 changes: 0 additions & 20 deletions tests/ignore_uncaught_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,26 +48,6 @@
("tests.components.ios.test_init", "test_creating_entry_sets_up_sensor"),
("tests.components.ios.test_init", "test_not_configuring_ios_not_creates_entry"),
("tests.components.local_file.test_camera", "test_file_not_readable"),
(
"tests.components.mqtt.test_init",
"test_setup_uses_certificate_on_certificate_set_to_auto",
),
(
"tests.components.mqtt.test_init",
"test_setup_does_not_use_certificate_on_mqtts_port",
),
(
"tests.components.mqtt.test_init",
"test_setup_without_tls_config_uses_tlsv1_under_python36",
),
(
"tests.components.mqtt.test_init",
"test_setup_with_tls_config_uses_tls_version1_2",
),
(
"tests.components.mqtt.test_init",
"test_setup_with_tls_config_of_v1_under_python36_only_uses_v1",
),
("tests.components.qwikswitch.test_init", "test_binary_sensor_device"),
("tests.components.qwikswitch.test_init", "test_sensor_device"),
("tests.components.rflink.test_init", "test_send_command_invalid_arguments"),
Expand Down

0 comments on commit 8fbdc70

Please sign in to comment.