diff --git a/tests/optimize/test_hyperopt.py b/tests/optimize/test_hyperopt.py index f5c8bf0ae..d388a38ae 100644 --- a/tests/optimize/test_hyperopt.py +++ b/tests/optimize/test_hyperopt.py @@ -560,6 +560,7 @@ def test_generate_optimizer(mocker, default_conf) -> None: } hyperopt = Hyperopt(default_conf) + hyperopt.dimensions = hyperopt.hyperopt_space() generate_optimizer_value = hyperopt.generate_optimizer(list(optimizer_param.values())) assert generate_optimizer_value == response_expected