hass-core/tests/components/vera/conftest.py

16 lines
432 B
Python
Raw Normal View History

"""Fixtures for tests."""
2021-01-01 22:31:56 +01:00
from unittest.mock import patch
import pytest
from .common import ComponentFactory
from tests.components.light.conftest import mock_light_profiles # noqa: F401
2020-06-05 01:59:55 -07:00
2023-01-26 18:05:05 +01:00
@pytest.fixture
def vera_component_factory():
"""Return a factory for initializing the vera component."""
with patch("pyvera.VeraController") as vera_controller_class_mock:
yield ComponentFactory(vera_controller_class_mock)