test: accept keyword args in the prompt-submit fallback stub

_run_prompt_submit grew a display_kind keyword; the fail-open test's
monkeypatched stub pinned the old 4-arg shape and broke on the call.
This commit is contained in:
Brooklyn Nicholson
2026-08-17 16:04:12 -05:00
committed by brooklyn!
parent 3ead0f8dc1
commit 70f9560b29
+1 -1
View File
@@ -377,7 +377,7 @@ def test_prompt_submit_fails_open_inline_when_compute_host_dispatch_breaks(monke
monkeypatch.setattr(
server,
"_run_prompt_submit",
lambda rid, sid, _session, text: inline_calls.append((rid, sid, text)),
lambda rid, sid, _session, text, **_kwargs: inline_calls.append((rid, sid, text)),
)
monkeypatch.setattr(server.threading, "Thread", _ImmediateThread)