test(profiles): main's #151775 test imports the moved apply_main_model_assignment

0ddac05322 (#151775) added a test that imports _apply_main_model_assignment
from web_server_config, which this PR moved to model_assignment. The merge
has no textual conflict, so CI on the merge ref caught it.
This commit is contained in:
kshitijk4poor
2026-11-11 14:11:04 +05:30
committed by kshitij
parent 28c4b4a6a5
commit 50007b0ee1

View File

@@ -206,12 +206,13 @@ def test_dashboard_main_pick_of_builtin_named_key_runs_where_it_validated(key, m
monkeypatch.setenv("OPENROUTER_API_KEY", "sk-or-builtin-123456")
from hermes_cli.config import atomic_config_write, load_config
from hermes_cli.runtime_provider import resolve_runtime_provider
from hermes_cli.web_server_config import _apply_main_model_assignment, _prepare_main_assignment
from hermes_cli.model_assignment import apply_main_model_assignment
from hermes_cli.web_server_config import _prepare_main_assignment
config_path, _ = _write_config(key)
cfg = load_config()
_, result = _prepare_main_assignment(cfg, key, "m1", "", "")
atomic_config_write(config_path, {"model": _apply_main_model_assignment(cfg["model"], result),
atomic_config_write(config_path, {"model": apply_main_model_assignment(cfg["model"], result),
"providers": cfg["providers"]})
runtime = resolve_runtime_provider(target_model="m1")