Changed tests

This commit is contained in:
Fredrik Rydin 2020-02-19 00:51:44 +01:00
parent 2058b492eb
commit 585545405d

View File

@ -895,20 +895,20 @@ def test_hyperopt_list(mocker, capsys, hyperopt_results):
" 9/12", " 10/12", " 11/12", " 12/12"]) " 9/12", " 10/12", " 11/12", " 12/12"])
args = [ args = [
"hyperopt-list", "hyperopt-list",
"--profitable",
"--no-details", "--no-details",
"--print-table", "--print-table",
"--max-trades", "20" "--min-trades", "100",
"--print-json"
] ]
pargs = get_args(args) pargs = get_args(args)
pargs['config'] = None pargs['config'] = None
start_hyperopt_list(pargs) start_hyperopt_list(pargs)
captured = capsys.readouterr() captured = capsys.readouterr()
assert all(x in captured.out assert all(x in captured.out
for x in [" 2/12", " 10/12"]) for x in [" 3/12", " 7/12", " 9/12", " 11/12"])
assert all(x not in captured.out assert all(x not in captured.out
for x in [" 1/12", " 3/12", " 4/12", " 5/12", " 6/12", " 7/12", " 8/12", " 9/12", for x in [" 1/12", " 2/12", " 4/12", " 5/12", " 6/12", " 8/12", " 10/12"
" 11/12", " 12/12"]) " 12/12"])
def test_hyperopt_show(mocker, capsys, hyperopt_results): def test_hyperopt_show(mocker, capsys, hyperopt_results):