Mock async_setup_entry in arcam_fmj config flow tests (#164351)

This commit is contained in:
Franck Nijhof
2026-02-27 20:42:12 +01:00
committed by GitHub
parent 5b7fac94e5
commit 2f98e68ed8

View File

@@ -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(