core/tests/components/vera/conftest.py

15 lines
359 B
Python
Raw Normal View History

"""Fixtures for tests."""
import pytest
from .common import ComponentFactory
2020-06-05 08:59:55 +00:00
from tests.async_mock import patch
@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)