* Add config flow to Folder Watcher * Add tests config flow * docstrings * watcher is sync * Fix strings * Fix * setup_entry issue * ConfigFlowResult * Review comments * Review comment * ruff * new date
17 lines
414 B
Python
17 lines
414 B
Python
"""Fixtures for Folder Watcher integration tests."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from collections.abc import Generator
|
|
from unittest.mock import patch
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture
|
|
def mock_setup_entry() -> Generator[None, None, None]:
|
|
"""Mock setting up a config entry."""
|
|
with patch(
|
|
"homeassistant.components.folder_watcher.async_setup_entry", return_value=True
|
|
):
|
|
yield
|