1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-20 07:20:14 +01:00
Files
core/tests/components/vera/conftest.py
T
2020-06-05 10:59:55 +02:00

15 lines
359 B
Python

"""Fixtures for tests."""
import pytest
from .common import ComponentFactory
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)