@@ -4954,18 +4954,18 @@ def test_validate_trading_mode_and_margin_mode(
49544954 ("binance" , "margin" , {"options" : {"defaultType" : "margin" }}),
49554955 ("binance" , "futures" , {"options" : {"defaultType" : "swap" }}),
49564956 ("bybit" , "spot" , {"options" : {"defaultType" : "spot" }}),
4957- ("bybit" , "futures" , {"options" : {"defaultType" : "swap" }}),
4957+ ("bybit" , "futures" , {"options" : {"defaultType" : "swap" , "defaultSettle" : "USDT" }}),
49584958 ("gate" , "futures" , {"options" : {"defaultType" : "swap" }}),
49594959 ("hitbtc" , "futures" , {"options" : {"defaultType" : "swap" }}),
49604960 ("kraken" , "futures" , {"options" : {"defaultType" : "swap" }}),
49614961 ("kucoin" , "futures" , {"options" : {"defaultType" : "swap" }}),
49624962 ("okx" , "futures" , {"options" : {"defaultType" : "swap" }}),
49634963 ],
49644964)
4965- def test__ccxt_config (default_conf , mocker , exchange_name , trading_mode , ccxt_config ):
4966- default_conf ["trading_mode" ] = trading_mode
4967- default_conf ["margin_mode" ] = "isolated"
4968- exchange = get_patched_exchange (mocker , default_conf , exchange = exchange_name )
4965+ def test__ccxt_config (default_conf_usdt , mocker , exchange_name , trading_mode , ccxt_config ):
4966+ default_conf_usdt ["trading_mode" ] = trading_mode
4967+ default_conf_usdt ["margin_mode" ] = "isolated"
4968+ exchange = get_patched_exchange (mocker , default_conf_usdt , exchange = exchange_name )
49694969 assert exchange ._ccxt_config == ccxt_config
49704970
49714971
0 commit comments