18 lines
414 B
Python
18 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
|