Rename process_maybe_execute_buys() --> enter_positions()

This commit is contained in:
hroff-1902
2019-12-30 22:50:56 +03:00
parent 84918ad424
commit fd7af587da
6 changed files with 96 additions and 88 deletions

View File

@@ -80,7 +80,7 @@ def test_may_execute_sell_stoploss_on_exchange_multi(default_conf, ticker, fee,
patch_get_signal(freqtrade)
# Create some test data
freqtrade.process_maybe_execute_buys()
freqtrade.enter_positions()
wallets_mock.reset_mock()
Trade.session = MagicMock()
@@ -154,7 +154,8 @@ def test_forcebuy_last_unlimited(default_conf, ticker, fee, limit_buy_order, moc
patch_get_signal(freqtrade)
# Create 4 trades
freqtrade.process_maybe_execute_buys()
n = freqtrade.enter_positions()
assert n == 4
trades = Trade.query.all()
assert len(trades) == 4