From ad12a9eb992cf2dda5f088888361f2842a06e3a5 Mon Sep 17 00:00:00 2001 From: Meng Xiangzhuo Date: Thu, 31 Oct 2024 03:29:21 +0800 Subject: [PATCH] tests: setup windows asyncio loop --- tests/exchange/test_binance_public_data.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/exchange/test_binance_public_data.py b/tests/exchange/test_binance_public_data.py index f598a0bdd..1b7c0640c 100644 --- a/tests/exchange/test_binance_public_data.py +++ b/tests/exchange/test_binance_public_data.py @@ -16,9 +16,15 @@ from freqtrade.exchange.binance_public_data import ( symbol_ccxt_to_binance, zip_name, ) +from freqtrade.system.asyncio_config import asyncio_setup from freqtrade.util.datetime_helpers import dt_ts, dt_utc +@pytest.fixture(autouse=True, scope="module") +def setup_windows_asyncio_loop(): + asyncio_setup() + + # spot klines archive csv file format, the futures/um klines don't have the header line # # open_time,open,high,low,close,volume,close_time,quote_volume,count,taker_buy_volume,taker_buy_quote_volume,ignore # noqa: E501