Require timeframe for plot-profit

must be set in config or via --timeframe
This commit is contained in:
Matthias
2021-06-12 09:03:55 +02:00
parent e2bbc0aa04
commit a05e38dbd3
2 changed files with 10 additions and 3 deletions

View File

@@ -462,6 +462,10 @@ def test_plot_profit(default_conf, mocker, testdatadir):
assert profit_mock.call_args_list[0][0][0] == default_conf['pairs']
assert store_mock.call_args_list[0][1]['auto_open'] is False
del default_conf['timeframe']
with pytest.raises(OperationalException, match=r"Timeframe must be set.*--timeframe.*"):
plot_profit(default_conf)
@pytest.mark.parametrize("ind1,ind2,plot_conf,exp", [
# No indicators, use plot_conf