core/tests/components/conftest.py

13 lines
312 B
Python
Raw Normal View History

"""Fixtures for component testing."""
from asynctest import patch
import pytest
@pytest.fixture(autouse=True)
def prevent_io():
"""Fixture to prevent certain I/O from happening."""
2019-07-31 19:25:30 +00:00
with patch(
"homeassistant.components.http.ban.async_load_ip_bans_config", return_value=[],
2019-07-31 19:25:30 +00:00
):
yield