2021-06-08 01:11:17 +00:00
|
|
|
"""Provide common pytest fixtures for kraken tests."""
|
2024-03-08 13:50:04 +00:00
|
|
|
|
2021-06-08 01:11:17 +00:00
|
|
|
from unittest.mock import patch
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
|
|
def mock_call_rate_limit_sleep():
|
|
|
|
"""Patch the call rate limit sleep time."""
|
|
|
|
with patch("homeassistant.components.kraken.CALL_RATE_LIMIT_SLEEP", new=0):
|
|
|
|
yield
|