plot-profit: Make "auto-open" HTML result optional

Adding an "--auto-open" argument.
This improves tool processing of the results, while still allowing to open the HTML file for easy use.
This commit is contained in:
Janos
2021-05-30 16:11:24 +02:00
parent 3dab58e6db
commit 812eb229df
7 changed files with 18 additions and 4 deletions

View File

@@ -460,7 +460,7 @@ def test_plot_profit(default_conf, mocker, testdatadir):
assert store_mock.call_count == 1
assert profit_mock.call_args_list[0][0][0] == default_conf['pairs']
assert store_mock.call_args_list[0][1]['auto_open'] is True
assert store_mock.call_args_list[0][1]['auto_open'] is False
@pytest.mark.parametrize("ind1,ind2,plot_conf,exp", [