exchange.fill_leverage_brackets/get_maintenance_ratio_and_amt docstring and type specification

This commit is contained in:
Sam Germain
2022-01-14 06:11:17 -06:00
parent b4a0611afc
commit bb2b2211d0
8 changed files with 57 additions and 31 deletions

View File

@@ -913,7 +913,7 @@ def test_execute_entry(mocker, default_conf_usdt, fee, limit_order,
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
name=exchange_name,
get_maintenance_ratio_and_amt=MagicMock(return_value=[0.01, 0.01])
get_maintenance_ratio_and_amt=MagicMock(return_value=(0.01, 0.01))
)
order['status'] = 'open'
order['id'] = '5568'