diff --git a/tests/rpc/test_rpc_telegram.py b/tests/rpc/test_rpc_telegram.py index adfbb4b2a..4601e64c4 100644 --- a/tests/rpc/test_rpc_telegram.py +++ b/tests/rpc/test_rpc_telegram.py @@ -37,6 +37,11 @@ from tests.conftest import (CURRENT_TEST_STRATEGY, EXMS, create_mock_trades, patch_exchange, patch_get_signal, patch_whitelist) +@pytest.fixture(autouse=True) +def mock_exchange_loop(mocker): + mocker.patch('freqtrade.exchange.exchange.Exchange._init_async_loop') + + @pytest.fixture def default_conf(default_conf) -> dict: # Telegram is enabled by default