hass-core/tests/components/vera/conftest.py
Ville Skyttä dc880118a4
Lint suppression cleanups (#47248)
* Unused pylint suppression cleanups

* Remove outdated pylint bug references

* Add flake8-noqa config and note to run it every now and then

* Add codes to noqa's

* Unused noqa cleanups
2021-03-02 09:02:04 +01:00

15 lines
434 B
Python

"""Fixtures for tests."""
from unittest.mock import patch
import pytest
from .common import ComponentFactory
from tests.components.light.conftest import mock_light_profiles # noqa: F401
@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)