mirror of https://github.com/home-assistant/core
13 lines
311 B
Python
13 lines
311 B
Python
"""Provide common pytest fixtures for kraken tests."""
|
|
|
|
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
|