2023-08-07 21:09:32 +00:00
|
|
|
"""August tests conftest."""
|
2024-03-08 13:50:25 +00:00
|
|
|
|
2023-08-07 21:09:32 +00:00
|
|
|
from unittest.mock import patch
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture(name="mock_discovery", autouse=True)
|
|
|
|
def mock_discovery_fixture():
|
|
|
|
"""Mock discovery to avoid loading the whole bluetooth stack."""
|
|
|
|
with patch(
|
|
|
|
"homeassistant.components.august.discovery_flow.async_create_flow"
|
|
|
|
) as mock_discovery:
|
|
|
|
yield mock_discovery
|