Log messages improved (plural/singular)

This commit is contained in:
hroff-1902
2019-11-23 12:20:41 +03:00
parent 99db53417c
commit 067267f4cf
2 changed files with 7 additions and 5 deletions

View File

@@ -384,10 +384,11 @@ def test_save_trials_saves_trials(mocker, hyperopt, testdatadir, caplog) -> None
trials = create_trials(mocker, hyperopt, testdatadir)
mock_dump = mocker.patch('freqtrade.optimize.hyperopt.dump', return_value=None)
hyperopt.trials = trials
hyperopt.save_trials()
hyperopt.save_trials(final=True)
trials_file = testdatadir / 'optimize' / 'ut_trials.pickle'
assert log_has("Saving 1 epochs.", caplog)
assert log_has("Saving 1 epoch.", caplog)
assert log_has(f"1 epoch saved to '{trials_file}'.", caplog)
mock_dump.assert_called_once()