From 867a3273ced30d090cae402aa9f9363144f2a27b Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 8 Sep 2019 19:38:16 +0200 Subject: [PATCH] Fix random failure if config.json exists --- tests/test_plotting.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_plotting.py b/tests/test_plotting.py index 465e3462d..a30d7d04a 100644 --- a/tests/test_plotting.py +++ b/tests/test_plotting.py @@ -336,12 +336,17 @@ def test_start_plot_profit(mocker): def test_start_plot_profit_error(mocker): + args = [ "plot-profit", "--pairs", "ETH/BTC" ] + argsp = get_args(args) + # Make sure we use no config. Details: #2241 + # not resetting config causes random failures if config.json exists + argsp.config = [] with pytest.raises(OperationalException): - start_plot_profit(get_args(args)) + start_plot_profit(argsp) def test_plot_profit(default_conf, mocker, testdatadir, caplog):