Properly patch exchange for plot_profit test

This commit is contained in:
Matthias 2021-02-01 12:58:18 +01:00
parent b33534b8f5
commit cd5c58fd37

View File

@ -432,7 +432,8 @@ def test_start_plot_profit_error(mocker):
start_plot_profit(argsp)
def test_plot_profit(default_conf, mocker, testdatadir, caplog):
def test_plot_profit(default_conf, mocker, testdatadir):
patch_exchange(mocker)
default_conf['trade_source'] = 'file'
default_conf['datadir'] = testdatadir
default_conf['exportfilename'] = testdatadir / 'backtest-result_test_nofile.json'