1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00
Files
core/tests/components/conftest.py
2020-04-30 13:29:50 -07:00

14 lines
320 B
Python

"""Fixtures for component testing."""
import pytest
from tests.async_mock import patch
@pytest.fixture(autouse=True)
def prevent_io():
"""Fixture to prevent certain I/O from happening."""
with patch(
"homeassistant.components.http.ban.async_load_ip_bans_config", return_value=[],
):
yield