hass-core/tests/components/ping/conftest.py
2023-11-17 13:30:30 -06:00

14 lines
359 B
Python

"""Test configuration for ping."""
from unittest.mock import patch
import pytest
@pytest.fixture
def patch_setup(*args, **kwargs):
"""Patch setup methods."""
with patch(
"homeassistant.components.ping.async_setup_entry",
return_value=True,
), patch("homeassistant.components.ping.async_setup", return_value=True):
yield