Add missing mock in brunt config flow tests (#88834)
This commit is contained in:
parent
aeb6c4f078
commit
76819fbb23
2 changed files with 19 additions and 6 deletions
14
tests/components/brunt/conftest.py
Normal file
14
tests/components/brunt/conftest.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
"""Configuration for brunt tests."""
|
||||
from collections.abc import Generator
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_setup_entry() -> Generator[AsyncMock, None, None]:
|
||||
"""Override async_setup_entry."""
|
||||
with patch(
|
||||
"homeassistant.components.brunt.async_setup_entry", return_value=True
|
||||
) as mock_setup_entry:
|
||||
yield mock_setup_entry
|
Loading…
Add table
Add a link
Reference in a new issue