Fix missing mock in backtesting
This commit is contained in:
parent
f1340142f0
commit
98df3c8103
@ -634,6 +634,7 @@ def test_backtest_only_sell(mocker, default_conf):
|
|||||||
|
|
||||||
def test_backtest_alternate_buy_sell(default_conf, fee, mocker):
|
def test_backtest_alternate_buy_sell(default_conf, fee, mocker):
|
||||||
mocker.patch('freqtrade.exchange.Exchange.get_fee', fee)
|
mocker.patch('freqtrade.exchange.Exchange.get_fee', fee)
|
||||||
|
mocker.patch('freqtrade.optimize.backtesting.file_dump_json', MagicMock())
|
||||||
backtest_conf = _make_backtest_conf(mocker, conf=default_conf, pair='UNITTEST/BTC')
|
backtest_conf = _make_backtest_conf(mocker, conf=default_conf, pair='UNITTEST/BTC')
|
||||||
backtesting = Backtesting(default_conf)
|
backtesting = Backtesting(default_conf)
|
||||||
backtesting.advise_buy = _trend_alternate # Override
|
backtesting.advise_buy = _trend_alternate # Override
|
||||||
|
Loading…
Reference in New Issue
Block a user