mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Add config flow for Ping (#103743)
This commit is contained in:
committed by
GitHub
parent
2d891c77ef
commit
e5bc25523e
14
tests/components/ping/conftest.py
Normal file
14
tests/components/ping/conftest.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""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
|
||||
Reference in New Issue
Block a user