Merge pull request #2084 from hroff-1902/hyperopt-print-params4

Improvements to hyperopt output
This commit is contained in:
Matthias
2019-08-03 13:24:47 +02:00
committed by GitHub
3 changed files with 35 additions and 27 deletions

View File

@@ -463,7 +463,7 @@ def test_start_calls_optimizer(mocker, default_conf, caplog, capsys) -> None:
parallel.assert_called_once()
out, err = capsys.readouterr()
assert 'Best result:\n* 1/1: foo result Objective: 1.00000\nwith values:\n' in out
assert 'Best result:\n\n* 1/1: foo result Objective: 1.00000\n' in out
assert dumper.called
# Should be called twice, once for tickerdata, once to save evaluations
assert dumper.call_count == 2