Skip to content

The agent that grows with you

test(auth): trim the salvaged dashboard-auth ownership tests to two invariants

teknium1bf28c15de4bc
diff --git a/tests/hermes_cli/test_dashboard_auth_plugin_hook.py b/tests/hermes_cli/test_dashboard_auth_plugin_hook.py
index e2bfa9b40cc..dd1fda6f257 100644
--- a/tests/hermes_cli/test_dashboard_auth_plugin_hook.py
+++ b/tests/hermes_cli/test_dashboard_auth_plugin_hook.py
@@ -193,23 +193,6 @@ def test_profile_manager_cannot_replace_launch_home_auth_provider():
assert "basic" not in profile_manager._ownership_ledger
-def test_profile_manager_cannot_remove_launch_home_auth_provider():
- """Foreign unload paths only dispose registrations in their own ledger."""
- manager, ctx = _real_ctx()
- launch_provider = _Basic("launch-home")
- ctx.register_dashboard_auth_provider(launch_provider)
-
- profile_scope = hermes_home_key(Path(manager.scope_key) / "profiles" / "bot")
- profile_manager = PluginManager(scope_key=profile_scope)
-
- assert profile_manager.unload("basic") is False
- profile_manager.unload()
- profile_manager._evict_stale_persistent_registrations()
-
- assert get_provider("basic") is launch_provider
- assert "basic" in manager._ownership_ledger
-
-
def test_profile_directory_can_be_the_process_launch_home(monkeypatch, tmp_path):
"""A process launched directly into a profile owns dashboard auth."""
launch_home = tmp_path / "profiles" / "bot"