Fail CI on lingering tasks (#88905)

This commit is contained in:
epenet
2023-03-07 11:35:48 +01:00
committed by GitHub
parent 85bcf11aeb
commit c51bde9a26
24 changed files with 170 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ from unittest.mock import patch
from pyinsteon.constants import DeviceAction
from pyinsteon.topics import DEVICE_LIST_CHANGED
from pyinsteon.utils import publish_topic
import pytest
from homeassistant.components import insteon
from homeassistant.components.insteon.api import async_load_api
@@ -154,6 +155,8 @@ async def test_get_ha_device_name(
assert name == ""
# This tests needs to be adjusted to remove lingering tasks
@pytest.mark.parametrize("expected_lingering_tasks", [True])
async def test_add_device_api(
hass: HomeAssistant, hass_ws_client: WebSocketGenerator
) -> None: