Skip to content

The agent that grows with you

fixup(curator): align #93002 test stubs with #93149 set_pinned bool contract

Teknium03c3554fc2fe
diff --git a/tests/hermes_cli/test_curator_pin_unmanaged.py b/tests/hermes_cli/test_curator_pin_unmanaged.py
index 8688919354a..d3c4b319502 100644
--- a/tests/hermes_cli/test_curator_pin_unmanaged.py
+++ b/tests/hermes_cli/test_curator_pin_unmanaged.py
@@ -34,7 +34,9 @@ def _stub(monkeypatch, *, managed: bool):
monkeypatch.setattr(
skill_usage,
"set_pinned",
- lambda name, pinned: calls.append((name, pinned)),
+ # Combined #93149 + #93002 semantics: set_pinned() returns True when
+ # the write landed; the stub records the call and reports success.
+ lambda name, pinned: (calls.append((name, pinned)), True)[1],
)
return calls