1
0
mirror of https://github.com/home-assistant/core.git synced 2026-07-16 02:53:27 +01:00
Files
core/tests/components/onkyo/conftest.py
T
Nebula83 937dbdc71f Add config flow to Onkyo (#117319)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Artur Pragacz <49985303+arturpragacz@users.noreply.github.com>
Co-authored-by: Artur Pragacz <artur@pragacz.com>
Co-authored-by: Joostlek <joostlek@outlook.com>
2024-10-24 12:45:25 +02:00

31 lines
738 B
Python

"""Configure tests for the Onkyo integration."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch
import pytest
from homeassistant.components.onkyo.const import DOMAIN
from tests.common import MockConfigEntry
@pytest.fixture
def mock_setup_entry() -> Generator[AsyncMock]:
"""Override async_setup_entry."""
with patch(
"homeassistant.components.onkyo.async_setup_entry",
return_value=True,
) as mock_setup_entry:
yield mock_setup_entry
@pytest.fixture(name="config_entry")
def mock_config_entry() -> MockConfigEntry:
"""Create Onkyo entry in Home Assistant."""
return MockConfigEntry(
domain=DOMAIN,
title="Onkyo",
data={},
)