From ac1c6c7ef362ee2e943fa6d159279511f1cbb184 Mon Sep 17 00:00:00 2001 From: eddiebergman Date: Wed, 8 Jan 2025 15:31:25 +0100 Subject: [PATCH] fix: path names for optimizer info --- tests/test_neps_api/test_api.py | 2 +- .../test_run_args_by_neps_run/test_neps_run.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_neps_api/test_api.py b/tests/test_neps_api/test_api.py index cebbdcc52..3dd075cf8 100644 --- a/tests/test_neps_api/test_api.py +++ b/tests/test_neps_api/test_api.py @@ -44,7 +44,7 @@ def test_default_examples(tmp_path: Path, example_script: Path) -> None: # Testing each folder with its corresponding expected dictionary for folder in tmp_path.iterdir(): - info_yaml_path = folder / ".optimizer_info" / "info.yaml" + info_yaml_path = folder / "optimizer_info.yaml" assert info_yaml_path.exists() loaded_data = yaml.safe_load(info_yaml_path.read_text()) diff --git a/tests/test_yaml_run_args/test_run_args_by_neps_run/test_neps_run.py b/tests/test_yaml_run_args/test_run_args_by_neps_run/test_neps_run.py index 4995a14c5..c286c2b65 100644 --- a/tests/test_yaml_run_args/test_run_args_by_neps_run/test_neps_run.py +++ b/tests/test_yaml_run_args/test_run_args_by_neps_run/test_neps_run.py @@ -18,19 +18,19 @@ "file_name": "config_select_bo.yaml", "check_optimizer": True, "optimizer_path": "select_bo_run_args.yaml", - "result_path": "tests_tmpdir/test_run_args_by_neps_run/optimizer_bo/.optimizer_info/info.yaml", + "result_path": "tests_tmpdir/test_run_args_by_neps_run/optimizer_bo/optimizer_info.yaml", }, { "file_name": "config_priorband_with_args.yaml", "check_optimizer": True, "optimizer_path": "priorband_args_run_args.yaml", - "result_path": "tests_tmpdir/test_run_args_by_neps_run/optimizer_priorband/.optimizer_info/info.yaml", + "result_path": "tests_tmpdir/test_run_args_by_neps_run/optimizer_priorband/optimizer_info.yaml", }, { "file_name": "config_hyperband_mixed_args.yaml", "check_optimizer": True, "optimizer_path": "hyperband_searcher_kwargs_yaml_args.yaml", - "result_path": "tests_tmpdir/test_run_args_by_neps_run/optimizer_hyperband/.optimizer_info/info.yaml", + "result_path": "tests_tmpdir/test_run_args_by_neps_run/optimizer_hyperband/optimizer_info.yaml", "args": True, }, ],