Rename get_positions to fetch_positions to align with ccxt naming
This commit is contained in:
@@ -638,7 +638,7 @@ def test_rpc_balance_handle(default_conf, mocker, tickers):
|
||||
'freqtrade.exchange.Exchange',
|
||||
validate_trading_mode_and_margin_mode=MagicMock(),
|
||||
get_balances=MagicMock(return_value=mock_balance),
|
||||
get_positions=MagicMock(return_value=mock_pos),
|
||||
fetch_positions=MagicMock(return_value=mock_pos),
|
||||
get_tickers=tickers,
|
||||
get_valid_pair_combination=MagicMock(
|
||||
side_effect=lambda a, b: f"{b}/{a}" if a == "USDT" else f"{a}/{b}")
|
||||
|
@@ -318,7 +318,7 @@ def test_sync_wallet_futures_live(mocker, default_conf):
|
||||
"total": 1000
|
||||
},
|
||||
}),
|
||||
get_positions=MagicMock(return_value=mock_result)
|
||||
fetch_positions=MagicMock(return_value=mock_result)
|
||||
)
|
||||
|
||||
freqtrade = get_patched_freqtradebot(mocker, default_conf)
|
||||
|
Reference in New Issue
Block a user