hass-core/tests/components/folder_watcher/conftest.py
G Johansson 917f4136a7
Add config flow to Folder Watcher (#105605)
* 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
2024-04-23 08:55:39 +02:00

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