From 5fb14e769b69e790a3a0f24820b24c690415c7bf Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 23 Nov 2019 14:52:44 +0100 Subject: [PATCH] Adjust folder to match user_data folder - otherwise running tests creates this folder --- tests/test_plotting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_plotting.py b/tests/test_plotting.py index ec4df9125..31502cafc 100644 --- a/tests/test_plotting.py +++ b/tests/test_plotting.py @@ -212,9 +212,9 @@ def test_generate_plot_file(mocker, caplog): fig = generate_empty_figure() plot_mock = mocker.patch("freqtrade.plot.plotting.plot", MagicMock()) store_plot_file(fig, filename="freqtrade-plot-UNITTEST_BTC-5m.html", - directory=Path("user_data/plots")) + directory=Path("user_data/plot")) - expected_fn = str(Path("user_data/plots/freqtrade-plot-UNITTEST_BTC-5m.html")) + expected_fn = str(Path("user_data/plot/freqtrade-plot-UNITTEST_BTC-5m.html")) assert plot_mock.call_count == 1 assert plot_mock.call_args[0][0] == fig assert (plot_mock.call_args_list[0][1]['filename']