From f9a92c28797f90fb1fc9b51d863bb2135341a0e3 Mon Sep 17 00:00:00 2001 From: hroff-1902 Date: Wed, 13 Nov 2019 23:32:37 +0300 Subject: [PATCH] Adjust test --- tests/optimize/test_hyperopt.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/optimize/test_hyperopt.py b/tests/optimize/test_hyperopt.py index 123fbf995..9a168d3e2 100644 --- a/tests/optimize/test_hyperopt.py +++ b/tests/optimize/test_hyperopt.py @@ -541,7 +541,7 @@ def test_buy_strategy_generator(hyperopt, testdatadir) -> None: def test_generate_optimizer(mocker, default_conf) -> None: default_conf.update({'config': 'config.json.example'}) default_conf.update({'timerange': None}) - default_conf.update({'spaces': 'default'}) + default_conf.update({'spaces': 'all'}) default_conf.update({'hyperopt_min_trades': 1}) trades = [ @@ -587,6 +587,10 @@ def test_generate_optimizer(mocker, default_conf) -> None: 'roi_p2': 0.01, 'roi_p3': 0.1, 'stoploss': -0.4, + 'trailing_stop': True, + 'trailing_stop_positive': 0.02, + 'trailing_stop_positive_offset': 0.1, + 'trailing_only_offset_is_reached': False, } response_expected = { 'loss': 1.9840569076926293,