Skip to content

The agent that grows with you

test(desktop): mark keychain-reset scoping tests macos_only

David Metcalfe368ea2d88bb6
diff --git a/tests/hermes_cli/test_gui_command.py b/tests/hermes_cli/test_gui_command.py
index dadb094522c..14f57b35354 100644
--- a/tests/hermes_cli/test_gui_command.py
+++ b/tests/hermes_cli/test_gui_command.py
@@ -741,6 +741,9 @@ def test_cmd_gui_setup_tcc_identity_exits_before_build(tmp_path, monkeypatch):
mock_install.assert_not_called()
+
+
def test_relaunchable_fixup_stable_identity_skips_keychain_reset(tmp_path, monkeypatch):
"""A successful stable-identity re-sign must NOT delete the safeStorage item.
@@ -750,6 +753,9 @@ def test_relaunchable_fixup_stable_identity_skips_keychain_reset(tmp_path, monke
stable path the cert-anchored designated requirement is stable across
rebuilds, so after the first launch the keychain ACL already matches and
deleting the item would destroy working credentials on every update.
+
+ ``macos_only``: the fixup no-ops on non-macOS (sys.platform guard), and
+ the subject is codesign against a real ``.app`` bundle layout.
"""
root = _make_desktop_tree(tmp_path)
desktop_dir = root / "apps" / "desktop"
@@ -773,6 +779,7 @@ def test_relaunchable_fixup_stable_identity_skips_keychain_reset(tmp_path, monke
assert resets == []
def test_relaunchable_fixup_legacy_adhoc_still_resets_keychain_item(tmp_path, monkeypatch):
"""The legacy ad-hoc fallback keeps the keychain reset (documented trade-off).
@@ -781,6 +788,9 @@ def test_relaunchable_fixup_legacy_adhoc_still_resets_keychain_item(tmp_path, mo
is the documented trade-off there (re-enter credentials once per update);
the durable fix is a stable signing identity, which makes this path
unreachable.
+
+ ``macos_only``: the fixup no-ops on non-macOS (sys.platform guard), and
+ the subject is codesign against a real ``.app`` bundle layout.
"""
root = _make_desktop_tree(tmp_path)
desktop_dir = root / "apps" / "desktop"