Rename process_maybe_execute_sells() --> exit_positions()

This commit is contained in:
hroff-1902
2019-12-30 22:08:36 +03:00
parent b00406a7eb
commit 84918ad424
3 changed files with 20 additions and 16 deletions

View File

@@ -90,7 +90,8 @@ def test_may_execute_sell_stoploss_on_exchange_multi(default_conf, ticker, fee,
trade.stoploss_order_id = 3
trade.open_order_id = None
freqtrade.process_maybe_execute_sells(trades)
n = freqtrade.exit_positions(trades)
assert n == 2
assert should_sell_mock.call_count == 2
# Only order for 3rd trade needs to be cancelled
@@ -170,7 +171,8 @@ def test_forcebuy_last_unlimited(default_conf, ticker, fee, limit_buy_order, moc
assert len(trades) == 5
bals = freqtrade.wallets.get_all_balances()
freqtrade.process_maybe_execute_sells(trades)
n = freqtrade.exit_positions(trades)
assert n == 1
trades = Trade.get_open_trades()
# One trade sold
assert len(trades) == 4