From cd5c58fd370f4d11469d58dc01bf61637393b3fa Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 1 Feb 2021 12:58:18 +0100 Subject: [PATCH] Properly patch exchange for plot_profit test --- tests/test_plotting.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_plotting.py b/tests/test_plotting.py index 4c8ac4816..1752f9b94 100644 --- a/tests/test_plotting.py +++ b/tests/test_plotting.py @@ -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'