mirror of
https://github.com/home-assistant/core.git
synced 2026-04-22 00:35:56 +00:00
Mock async_setup_entry in arcam_fmj config flow tests (#164351)
This commit is contained in:
@@ -70,6 +70,15 @@ def dummy_client_fixture() -> Generator[MagicMock]:
|
||||
yield client.return_value
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def mock_setup_entry() -> Generator[AsyncMock]:
|
||||
"""Override async_setup_entry."""
|
||||
with patch(
|
||||
"homeassistant.components.arcam_fmj.async_setup_entry", return_value=True
|
||||
) as mock_setup:
|
||||
yield mock_setup
|
||||
|
||||
|
||||
async def test_ssdp(hass: HomeAssistant) -> None:
|
||||
"""Test a ssdp import flow."""
|
||||
result = await hass.config_entries.flow.async_init(
|
||||
|
||||
Reference in New Issue
Block a user