2023-05-25 11:45:19 +00:00
|
|
|
"""Blueprints test helpers."""
|
|
|
|
|
2023-05-26 06:13:13 +00:00
|
|
|
from collections.abc import Generator
|
|
|
|
from typing import Any
|
2023-05-25 11:45:19 +00:00
|
|
|
from unittest.mock import patch
|
|
|
|
|
|
|
|
|
2023-05-26 06:13:13 +00:00
|
|
|
def stub_blueprint_populate_fixture_helper() -> Generator[None, Any, None]:
|
2023-05-25 11:45:19 +00:00
|
|
|
"""Stub copying the blueprints to the config folder."""
|
|
|
|
with patch(
|
|
|
|
"homeassistant.components.blueprint.models.DomainBlueprints.async_populate"
|
|
|
|
):
|
|
|
|
yield
|