extract stop_loss_reached to allow check before ignore_roi_if_buy_signal

This commit is contained in:
xmatthias
2018-06-22 21:21:34 +02:00
parent cbfee51f32
commit e2a2a0be9b
2 changed files with 15 additions and 7 deletions

View File

@@ -1274,7 +1274,7 @@ def test_sell_profit_only_enable_loss(default_conf, limit_buy_order, fee, mocker
patch_get_signal(mocker)
patch_RPCManager(mocker)
patch_coinmarketcap(mocker)
mocker.patch('freqtrade.freqtradebot.Analyze.min_roi_reached', return_value=False)
mocker.patch('freqtrade.freqtradebot.Analyze.stop_loss_reached', return_value=False)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
validate_pairs=MagicMock(),