Fail tests if wrapped callbacks or coroutines throw (#35010)
This commit is contained in:
1 parent
b35306052d
commit
f1ecac92df
22 files changed
+156
-38
No files matched your search
@@ -821,6 +821,7 @@ async def test_setup_fails_without_config(hass):
|
||||
assert not await async_setup_component(hass, mqtt.DOMAIN, {})
|
||||
|
||||
|
||||
@pytest.mark.no_fail_on_log_exception
|
||||
async def test_message_callback_exception_gets_logged(hass, caplog):
|
||||
"""Test exception raised by message handler."""
|
||||
await async_mock_mqtt_component(hass)
|
||||
|
||||
Reference in new issue
Block a user