diff --git a/tests/components/climacell/conftest.py b/tests/components/climacell/conftest.py index d4c77c58879..88640c69c14 100644 --- a/tests/components/climacell/conftest.py +++ b/tests/components/climacell/conftest.py @@ -7,15 +7,6 @@ import pytest 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) def climacell_config_flow_connect(): """Mock valid climacell config flow setup.""" diff --git a/tests/components/dlna_dmr/conftest.py b/tests/components/dlna_dmr/conftest.py index f352349205e..71910ec1cd8 100644 --- a/tests/components/dlna_dmr/conftest.py +++ b/tests/components/dlna_dmr/conftest.py @@ -93,15 +93,6 @@ def dmr_device_mock(domain_data_mock: Mock) -> Iterable[Mock]: 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) def ssdp_scanner_mock() -> Iterable[Mock]: """Mock the SSDP module.""" diff --git a/tests/components/google_travel_time/conftest.py b/tests/components/google_travel_time/conftest.py index 87d922ac22c..7f668383c4b 100644 --- a/tests/components/google_travel_time/conftest.py +++ b/tests/components/google_travel_time/conftest.py @@ -5,15 +5,6 @@ from googlemaps.exceptions import ApiError 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") def validate_config_entry_fixture(): """Return valid config entry.""" diff --git a/tests/components/vizio/conftest.py b/tests/components/vizio/conftest.py index 2c32b07cc1a..ffe79cb4ecf 100644 --- a/tests/components/vizio/conftest.py +++ b/tests/components/vizio/conftest.py @@ -39,15 +39,6 @@ def get_mock_inputs(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) def vizio_get_unique_id_fixture(): """Mock get vizio unique ID.""" diff --git a/tests/components/waze_travel_time/conftest.py b/tests/components/waze_travel_time/conftest.py index 6954522dc85..04675666356 100644 --- a/tests/components/waze_travel_time/conftest.py +++ b/tests/components/waze_travel_time/conftest.py @@ -12,15 +12,6 @@ def mock_wrc(): 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") def validate_config_entry_fixture(): """Return valid config entry."""