Require timeframe for plot-profit
must be set in config or via --timeframe
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user