mirror of
https://github.com/elisspace/core.git
synced 2026-09-28 13:30:06 +00:00
Add config flow to Moon (#67444)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
"""Fixtures for Moon integration tests."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Generator
|
||||
from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.moon.const import DOMAIN
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_config_entry() -> MockConfigEntry:
|
||||
"""Return the default mocked config entry."""
|
||||
return MockConfigEntry(
|
||||
title="Moon",
|
||||
domain=DOMAIN,
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_setup_entry() -> Generator[None, None, None]:
|
||||
"""Mock setting up a config entry."""
|
||||
with patch("homeassistant.components.moon.async_setup_entry", return_value=True):
|
||||
yield
|
||||
Reference in New Issue
Block a user