Replace separate start/end date option with usual timerange option

This commit is contained in:
froggleston
2022-11-27 11:30:13 +00:00
parent 706bc9ebea
commit 1a3f88c7b9
6 changed files with 21 additions and 48 deletions

View File

@@ -191,10 +191,8 @@ def test_backtest_analysis_nomock(default_conf, mocker, caplog, testdatadir, tmp
assert '2.5' in captured.out
# test date filtering
args = get_args(base_args +
['--analysis-date-start', "20180129",
'--analysis-date-end', "20180130"]
)
args = get_args(base_args + ['--timerange', "20180129-20180130"])
start_analysis_entries_exits(args)
captured = capsys.readouterr()
assert 'enter_tag_long_a' in captured.out
assert 'enter_tag_long_b' not in captured.out