Skip to content

Commit

Permalink
fix style err
Browse files Browse the repository at this point in the history
  • Loading branch information
MangaBoba committed Dec 20, 2023
1 parent 3578c56 commit 4f1bae2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_tuners.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
],
)
def test_golem_tuners_wrap(tuner_name, expectation):
"""Check all available tuner types on single objective synthetic."""
test_config.objectives = [ref_objectives_list[0]] # sinngle objective
if tuner_name:
test_config.tuner_cfg = ref_tuner_cfg
Expand All @@ -51,9 +52,11 @@ def test_golem_tuners_wrap(tuner_name, expectation):


def test_multiobj_tuner():
"""Check optuna tuner on multiobjective synthetic."""
test_config.tuner_cfg = ref_tuner_cfg
test_config.objectives = ref_objectives_list
test_config.tuner_cfg.tuner_type = 'optuna'
tuner = GolemTuner(test_config)
results = tuner.tune(struct_for_tune)
assert all(isinstance(res, Structure) for res in results)
assert all(len(res.fitness) == len(test_config.objectives) for res in results)

0 comments on commit 4f1bae2

Please sign in to comment.