tests: Skip binanceus websocket tests

binance.us volume is currently too low for this test to run reliably.
This commit is contained in:
Matthias
2024-10-19 13:32:27 +02:00
parent 102d44a7b8
commit 6a5feacd38
+7 -3
View File
@@ -73,6 +73,7 @@ EXCHANGES = {
"hasQuoteVolume": True, "hasQuoteVolume": True,
"timeframe": "1h", "timeframe": "1h",
"futures": False, "futures": False,
"skip_ws_tests": True,
"sample_order": [ "sample_order": [
{ {
"symbol": "SOLUSDT", "symbol": "SOLUSDT",
@@ -423,14 +424,17 @@ def exchange_mode(request):
def exchange_ws(request, exchange_conf, exchange_mode, class_mocker): def exchange_ws(request, exchange_conf, exchange_mode, class_mocker):
class_mocker.patch("freqtrade.exchange.bybit.Bybit.additional_exchange_init") class_mocker.patch("freqtrade.exchange.bybit.Bybit.additional_exchange_init")
exchange_conf["exchange"]["enable_ws"] = True exchange_conf["exchange"]["enable_ws"] = True
exchange_param = EXCHANGES[request.param]
if exchange_param.get("skip_ws_tests"):
pytest.skip(f"{request.param} does not support websocket tests.")
if exchange_mode == "spot": if exchange_mode == "spot":
exchange, name = get_exchange(request.param, exchange_conf) exchange, name = get_exchange(request.param, exchange_conf)
pair = EXCHANGES[request.param]["pair"] pair = exchange_param["pair"]
elif EXCHANGES[request.param].get("futures"): elif exchange_param.get("futures"):
exchange, name = get_futures_exchange( exchange, name = get_futures_exchange(
request.param, exchange_conf, class_mocker=class_mocker request.param, exchange_conf, class_mocker=class_mocker
) )
pair = EXCHANGES[request.param]["futures_pair"] pair = exchange_param["futures_pair"]
else: else:
pytest.skip("Exchange does not support futures.") pytest.skip("Exchange does not support futures.")