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:
teknium1 2026-07-24 10:42:10 -07:00 committed by Teknium
parent 477cd09418
commit 804ce793de
3 changed files with 5 additions and 1 deletions

View file

@ -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="")

View file

@ -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

View file

@ -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()