Update missing mocks
This commit is contained in:
parent
feabed30a3
commit
ba38a826e9
@ -5241,7 +5241,7 @@ def test_get_liquidation_price(
|
|||||||
default_conf_usdt['trading_mode'] = trading_mode
|
default_conf_usdt['trading_mode'] = trading_mode
|
||||||
default_conf_usdt['exchange']['name'] = exchange_name
|
default_conf_usdt['exchange']['name'] = exchange_name
|
||||||
default_conf_usdt['margin_mode'] = margin_mode
|
default_conf_usdt['margin_mode'] = margin_mode
|
||||||
mocker.patch('freqtrade.exchange.Gate.validate_ordertypes')
|
mocker.patch('freqtrade.exchange.gate.Gate.validate_ordertypes')
|
||||||
exchange = get_patched_exchange(mocker, default_conf_usdt, id=exchange_name)
|
exchange = get_patched_exchange(mocker, default_conf_usdt, id=exchange_name)
|
||||||
|
|
||||||
exchange.get_maintenance_ratio_and_amt = MagicMock(return_value=(0.01, 0.01))
|
exchange.get_maintenance_ratio_and_amt = MagicMock(return_value=(0.01, 0.01))
|
||||||
|
@ -786,7 +786,7 @@ def test_execute_entry(mocker, default_conf_usdt, fee, limit_order,
|
|||||||
default_conf_usdt['exchange']['name'] = exchange_name
|
default_conf_usdt['exchange']['name'] = exchange_name
|
||||||
if margin_mode:
|
if margin_mode:
|
||||||
default_conf_usdt['margin_mode'] = margin_mode
|
default_conf_usdt['margin_mode'] = margin_mode
|
||||||
mocker.patch('freqtrade.exchange.Gate.validate_ordertypes')
|
mocker.patch('freqtrade.exchange.gate.Gate.validate_ordertypes')
|
||||||
patch_RPCManager(mocker)
|
patch_RPCManager(mocker)
|
||||||
patch_exchange(mocker, id=exchange_name)
|
patch_exchange(mocker, id=exchange_name)
|
||||||
freqtrade = FreqtradeBot(default_conf_usdt)
|
freqtrade = FreqtradeBot(default_conf_usdt)
|
||||||
@ -814,7 +814,7 @@ def test_execute_entry(mocker, default_conf_usdt, fee, limit_order,
|
|||||||
get_max_leverage=MagicMock(return_value=10),
|
get_max_leverage=MagicMock(return_value=10),
|
||||||
)
|
)
|
||||||
mocker.patch.multiple(
|
mocker.patch.multiple(
|
||||||
'freqtrade.exchange.Okx',
|
'freqtrade.exchange.okx.Okx',
|
||||||
get_max_pair_stake_amount=MagicMock(return_value=500000),
|
get_max_pair_stake_amount=MagicMock(return_value=500000),
|
||||||
)
|
)
|
||||||
pair = 'ETH/USDT'
|
pair = 'ETH/USDT'
|
||||||
|
Loading…
Reference in New Issue
Block a user