mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Fail tests if wrapped callbacks or coroutines throw (#35010)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
"""Test dispatcher helpers."""
|
||||
from functools import partial
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.helpers.dispatcher import (
|
||||
async_dispatcher_connect,
|
||||
@@ -128,6 +130,7 @@ async def test_simple_function_multiargs(hass):
|
||||
assert calls == [3, 2, "bla"]
|
||||
|
||||
|
||||
@pytest.mark.no_fail_on_log_exception
|
||||
async def test_callback_exception_gets_logged(hass, caplog):
|
||||
"""Test exception raised by signal handler."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user