mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-21 16:18:55 +00:00
test(approval): isolate smart observer redaction failure
Some checks are pending
CI / Detect affected areas (push) Waiting to run
CI / Python tests (push) Blocked by required conditions
CI / Python lints (push) Blocked by required conditions
CI / TypeScript (push) Blocked by required conditions
CI / Docs Site (push) Blocked by required conditions
CI / Deny unrelated histories (push) Blocked by required conditions
CI / Check contributors (push) Blocked by required conditions
CI / Check uv.lock (push) Blocked by required conditions
CI / Lint Docker scripts (push) Blocked by required conditions
CI / Build&Test Docker image (push) Blocked by required conditions
CI / Supply-chain scan (push) Blocked by required conditions
CI / OSV scan (push) Waiting to run
CI / All required checks pass (push) Blocked by required conditions
CI / CI timing report (push) Blocked by required conditions
Deploy Site / deploy-vercel (push) Waiting to run
Deploy Site / deploy-docs (push) Waiting to run
Some checks are pending
CI / Detect affected areas (push) Waiting to run
CI / Python tests (push) Blocked by required conditions
CI / Python lints (push) Blocked by required conditions
CI / TypeScript (push) Blocked by required conditions
CI / Docs Site (push) Blocked by required conditions
CI / Deny unrelated histories (push) Blocked by required conditions
CI / Check contributors (push) Blocked by required conditions
CI / Check uv.lock (push) Blocked by required conditions
CI / Lint Docker scripts (push) Blocked by required conditions
CI / Build&Test Docker image (push) Blocked by required conditions
CI / Supply-chain scan (push) Blocked by required conditions
CI / OSV scan (push) Waiting to run
CI / All required checks pass (push) Blocked by required conditions
CI / CI timing report (push) Blocked by required conditions
Deploy Site / deploy-vercel (push) Waiting to run
Deploy Site / deploy-docs (push) Waiting to run
This commit is contained in:
parent
d921005e25
commit
bd740f203b
1 changed files with 7 additions and 1 deletions
|
|
@ -284,8 +284,14 @@ class TestSmartModeFiresHooks:
|
|||
):
|
||||
self._configure(monkeypatch, verdict)
|
||||
captured = []
|
||||
|
||||
def fail_observer_redaction(text, *, force=False):
|
||||
if force:
|
||||
raise RuntimeError("observer redactor failed")
|
||||
return text
|
||||
|
||||
with (
|
||||
patch("agent.redact.redact_sensitive_text", side_effect=RuntimeError("redactor failed")),
|
||||
patch("agent.redact.redact_sensitive_text", side_effect=fail_observer_redaction),
|
||||
patch(
|
||||
"hermes_cli.plugins.invoke_hook",
|
||||
side_effect=lambda name, **kwargs: captured.append((name, kwargs)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue