mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-25 17:18:11 +00:00
test: update kwarg-snapshot assertions for the utf-8 subprocess guard
- whatsapp taskkill + webhook gh-comment assert_called_with: add the two new kwargs - test_status fake_run: accept **kwargs so signature-strict stub doesn't TypeError on encoding/errors
This commit is contained in:
parent
477cd09418
commit
804ce793de
3 changed files with 5 additions and 1 deletions
|
|
@ -723,7 +723,7 @@ class TestTerminatePid:
|
|||
calls = []
|
||||
monkeypatch.setattr(status, "_IS_WINDOWS", True)
|
||||
|
||||
def fake_run(cmd, capture_output=False, text=False, timeout=None, creationflags=0):
|
||||
def fake_run(cmd, capture_output=False, text=False, timeout=None, creationflags=0, **kwargs):
|
||||
calls.append((cmd, capture_output, text, timeout, creationflags))
|
||||
return SimpleNamespace(returncode=0, stdout="", stderr="")
|
||||
|
||||
|
|
|
|||
|
|
@ -331,6 +331,8 @@ class TestGitHubCommentDelivery:
|
|||
],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
encoding="utf-8",
|
||||
errors="replace",
|
||||
timeout=30,
|
||||
)
|
||||
# Delivery info is retained after send() so interim status messages
|
||||
|
|
|
|||
|
|
@ -591,6 +591,8 @@ class TestHttpSessionLifecycle:
|
|||
["taskkill", "/PID", "12345", "/T"],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
encoding="utf-8",
|
||||
errors="replace",
|
||||
timeout=10,
|
||||
)
|
||||
mock_proc.terminate.assert_not_called()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue