Skip to content

The agent that grows with you

fix(update): trim default-config migration salvage to two tests (#105013, salvage #105014)

teknium196475946c134
diff --git a/tests/hermes_cli/test_sibling_config_migration.py b/tests/hermes_cli/test_sibling_config_migration.py
index af655a780bb..2d84a3dca19 100644
--- a/tests/hermes_cli/test_sibling_config_migration.py
+++ b/tests/hermes_cli/test_sibling_config_migration.py
@@ -37,9 +37,8 @@ def _setup(monkeypatch, tmp_path, active_home: Path, *, default_home: Path | Non
import hermes_cli.profiles as profiles_mod
monkeypatch.setattr(profiles_mod, "_get_profiles_root", lambda: tmp_path / "profiles")
- # Default lives at the install root, not under profiles/. Absent unless a
- # test passes default_home, so the original named-profile cases stay
- # focused on profiles/ and cannot pick up the process HERMES_HOME.
+ # Default lives at the install root, not under profiles/; absent unless a test passes it,
+ # so no test can reach the real ~/.hermes.
missing = tmp_path / "no-such-default-home"
monkeypatch.setattr(
profiles_mod,
@@ -166,13 +165,3 @@ def test_default_active_still_migrates_named_siblings(monkeypatch, tmp_path):
on_disk = yaml.safe_load((sibling / "config.yaml").read_text())
assert on_disk["_config_version"] == _latest_version()
assert yaml.safe_load((default_home / "config.yaml").read_text())["_config_version"] == _latest_version()
-
-
-def test_default_without_config_yaml_is_skipped(monkeypatch, tmp_path):
- default_home = tmp_path / "default-home"
- default_home.mkdir()
- active = _write_profile(tmp_path / "profiles", "work", _latest_version())
- _setup(monkeypatch, tmp_path, active, default_home=default_home)
-
- assert update_cmd._migrate_sibling_profile_configs() == []
- assert not (default_home / "config.yaml").exists()