mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 01:38:02 +00:00

* Bump yalexs to 8.2.0 changelog: https://github.com/bdraco/yalexs/compare/v8.1.4...v8.2.0 * bump to 8.3.1 * bump * one more bump to ensure we do not hit the ratelimit/shutdown cleanly * empty commit to restart ci since close/open did not work in flight
23 lines
653 B
Python
23 lines
653 B
Python
"""August tests conftest."""
|
|
|
|
from unittest.mock import patch
|
|
|
|
import pytest
|
|
from yalexs.manager.ratelimit import _RateLimitChecker
|
|
|
|
|
|
@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.data.discovery_flow.async_create_flow"
|
|
) as mock_discovery:
|
|
yield mock_discovery
|
|
|
|
|
|
@pytest.fixture(name="disable_ratelimit_checks", autouse=True)
|
|
def disable_ratelimit_checks_fixture():
|
|
"""Disable rate limit checks."""
|
|
with patch.object(_RateLimitChecker, "register_wakeup"):
|
|
yield
|