From c1ba2936ec8edb0c4b03e934b5e5748ccc547258 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 19 Jul 2025 16:14:27 +0200 Subject: [PATCH] test: update ccxt_config test to set defaultSettle for bybit --- tests/exchange/test_exchange.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/exchange/test_exchange.py b/tests/exchange/test_exchange.py index 42f5608c0..4e7ad3bfb 100644 --- a/tests/exchange/test_exchange.py +++ b/tests/exchange/test_exchange.py @@ -4954,7 +4954,7 @@ def test_validate_trading_mode_and_margin_mode( ("binance", "margin", {"options": {"defaultType": "margin"}}), ("binance", "futures", {"options": {"defaultType": "swap"}}), ("bybit", "spot", {"options": {"defaultType": "spot"}}), - ("bybit", "futures", {"options": {"defaultType": "swap"}}), + ("bybit", "futures", {"options": {"defaultType": "swap", "defaultSettle": "USDT"}}), ("gate", "futures", {"options": {"defaultType": "swap"}}), ("hitbtc", "futures", {"options": {"defaultType": "swap"}}), ("kraken", "futures", {"options": {"defaultType": "swap"}}), @@ -4962,10 +4962,10 @@ def test_validate_trading_mode_and_margin_mode( ("okx", "futures", {"options": {"defaultType": "swap"}}), ], ) -def test__ccxt_config(default_conf, mocker, exchange_name, trading_mode, ccxt_config): - default_conf["trading_mode"] = trading_mode - default_conf["margin_mode"] = "isolated" - exchange = get_patched_exchange(mocker, default_conf, exchange=exchange_name) +def test__ccxt_config(default_conf_usdt, mocker, exchange_name, trading_mode, ccxt_config): + default_conf_usdt["trading_mode"] = trading_mode + default_conf_usdt["margin_mode"] = "isolated" + exchange = get_patched_exchange(mocker, default_conf_usdt, exchange=exchange_name) assert exchange._ccxt_config == ccxt_config