mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Drop more persistent notification patches (#57295)
This commit is contained in:
parent
82160fa350
commit
b0f24b65d6
@ -7,15 +7,6 @@ import pytest
|
|||||||
from tests.common import load_fixture
|
from tests.common import load_fixture
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(name="skip_notifications", autouse=True)
|
|
||||||
def skip_notifications_fixture():
|
|
||||||
"""Skip notification calls."""
|
|
||||||
with patch("homeassistant.components.persistent_notification.async_create"), patch(
|
|
||||||
"homeassistant.components.persistent_notification.async_dismiss"
|
|
||||||
):
|
|
||||||
yield
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(name="climacell_config_flow_connect", autouse=True)
|
@pytest.fixture(name="climacell_config_flow_connect", autouse=True)
|
||||||
def climacell_config_flow_connect():
|
def climacell_config_flow_connect():
|
||||||
"""Mock valid climacell config flow setup."""
|
"""Mock valid climacell config flow setup."""
|
||||||
|
@ -93,15 +93,6 @@ def dmr_device_mock(domain_data_mock: Mock) -> Iterable[Mock]:
|
|||||||
yield device
|
yield device
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(name="skip_notifications", autouse=True)
|
|
||||||
def skip_notifications_fixture() -> Iterable[None]:
|
|
||||||
"""Skip notification calls."""
|
|
||||||
with patch("homeassistant.components.persistent_notification.async_create"), patch(
|
|
||||||
"homeassistant.components.persistent_notification.async_dismiss"
|
|
||||||
):
|
|
||||||
yield
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def ssdp_scanner_mock() -> Iterable[Mock]:
|
def ssdp_scanner_mock() -> Iterable[Mock]:
|
||||||
"""Mock the SSDP module."""
|
"""Mock the SSDP module."""
|
||||||
|
@ -5,15 +5,6 @@ from googlemaps.exceptions import ApiError
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(name="skip_notifications", autouse=True)
|
|
||||||
def skip_notifications_fixture():
|
|
||||||
"""Skip notification calls."""
|
|
||||||
with patch("homeassistant.components.persistent_notification.async_create"), patch(
|
|
||||||
"homeassistant.components.persistent_notification.async_dismiss"
|
|
||||||
):
|
|
||||||
yield
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(name="validate_config_entry")
|
@pytest.fixture(name="validate_config_entry")
|
||||||
def validate_config_entry_fixture():
|
def validate_config_entry_fixture():
|
||||||
"""Return valid config entry."""
|
"""Return valid config entry."""
|
||||||
|
@ -39,15 +39,6 @@ def get_mock_inputs(input_list):
|
|||||||
return [MockInput(input) for input in input_list]
|
return [MockInput(input) for input in input_list]
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(name="skip_notifications", autouse=True)
|
|
||||||
def skip_notifications_fixture():
|
|
||||||
"""Skip notification calls."""
|
|
||||||
with patch("homeassistant.components.persistent_notification.async_create"), patch(
|
|
||||||
"homeassistant.components.persistent_notification.async_dismiss"
|
|
||||||
):
|
|
||||||
yield
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(name="vizio_get_unique_id", autouse=True)
|
@pytest.fixture(name="vizio_get_unique_id", autouse=True)
|
||||||
def vizio_get_unique_id_fixture():
|
def vizio_get_unique_id_fixture():
|
||||||
"""Mock get vizio unique ID."""
|
"""Mock get vizio unique ID."""
|
||||||
|
@ -12,15 +12,6 @@ def mock_wrc():
|
|||||||
yield
|
yield
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(name="skip_notifications", autouse=True)
|
|
||||||
def skip_notifications_fixture():
|
|
||||||
"""Skip notification calls."""
|
|
||||||
with patch("homeassistant.components.persistent_notification.async_create"), patch(
|
|
||||||
"homeassistant.components.persistent_notification.async_dismiss"
|
|
||||||
):
|
|
||||||
yield
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(name="validate_config_entry")
|
@pytest.fixture(name="validate_config_entry")
|
||||||
def validate_config_entry_fixture():
|
def validate_config_entry_fixture():
|
||||||
"""Return valid config entry."""
|
"""Return valid config entry."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user