test: fix failing test

This commit is contained in:
Matthias
2025-11-03 20:02:38 +01:00
parent 8269333d9c
commit 367b9fa7f6
+2 -2
View File
@@ -501,7 +501,7 @@ def test_populate_indicators(hyperopt, testdatadir) -> None:
def test_generate_optimizer(mocker, hyperopt_conf) -> None: def test_generate_optimizer(mocker, hyperopt_conf) -> None:
hyperopt_conf.update( hyperopt_conf.update(
{ {
"spaces": "all", "spaces": ["all"],
"hyperopt_min_trades": 1, "hyperopt_min_trades": 1,
} }
) )
@@ -616,7 +616,7 @@ def test_generate_optimizer(mocker, hyperopt_conf) -> None:
"max_open_trades": {"max_open_trades": 3}, "max_open_trades": {"max_open_trades": 3},
}, },
"params_dict": optimizer_param, "params_dict": optimizer_param,
"params_not_optimized": {"buy": {}, "protection": {}, "sell": {}}, "params_not_optimized": {},
"results_metrics": ANY, "results_metrics": ANY,
"total_profit": 3.1e-08, "total_profit": 3.1e-08,
} }