core/tests/components/mill/conftest.py
Daniel Hjelseth Høyer f8e88a0855 mock_setup_entry
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2025-01-05 13:38:17 +01:00

16 lines
394 B
Python

"""Common fixtures for the mill tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch
import pytest
@pytest.fixture
def mock_setup_entry() -> Generator[AsyncMock]:
"""Override async_setup_entry."""
with patch(
"homeassistant.components.mill.async_setup_entry", return_value=True
) as mock_setup_entry:
yield mock_setup_entry