Add missing mock in abode config flow tests (#88828)

This commit is contained in:
epenet 2023-02-27 14:03:51 +01:00 committed by GitHub
parent 5cc9e7fedd
commit 198ebaff6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View file

@ -1,4 +1,7 @@
"""Configuration for Abode tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch
from jaraco.abode.helpers import urls as URL
import pytest
@ -6,6 +9,15 @@ from tests.common import load_fixture
from tests.components.light.conftest import mock_light_profiles # noqa: F401
@pytest.fixture
def mock_setup_entry() -> Generator[AsyncMock, None, None]:
"""Override async_setup_entry."""
with patch(
"homeassistant.components.abode.async_setup_entry", return_value=True
) as mock_setup_entry:
yield mock_setup_entry
@pytest.fixture(autouse=True)
def requests_mock_fixture(requests_mock) -> None:
"""Fixture to provide a requests mocker."""