Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tests/test_lark_private_conversations.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ def crash(**kwargs):
@pytest.mark.parametrize("fault", [None, "codex-fallback", "quota-restore", "quota-unchanged", "quota-unknown",
"stop", "new-input", "no-anchor", "changed-proof", "unknown-outer", "wrong-target", "changed-brief", "tool-step",
"cleared-before-proof", "retention-io"])
def test_completed_invalid_metadata_uses_one_original_format_review(tmp_path, language_server, monkeypatch, fault):
def test_completed_invalid_metadata_uses_one_original_format_review(tmp_path, language_server, monkeypatch, fault): # noqa: F811 - imported pytest fixture
"""An already delivered, historical answer must not be sent/executed twice."""
from copy import deepcopy
from datetime import timezone
Expand Down Expand Up @@ -925,8 +925,9 @@ def changed(**kwargs):
monkeypatch.setattr(runtime, "capabilities", lambda: capabilities)
allocation = manager_executor_allocation(runtime, environ={}, endpoint_capabilities=[
{**item, "available": item["agent_id"] == "codex"} for item in capabilities])
route = lambda *args: {"allocation": allocation, "blocked_primary": None,
"observed_at": time.time()}
def route(*args):
return {"allocation": allocation, "blocked_primary": None,
"observed_at": time.time()}
monkeypatch.setattr(manager_module, "manager_session_quota_route", route)
monkeypatch.setattr(runtime_module, "manager_session_quota_route", route)
class Formatter(CodexAppServerAdapter):
Expand Down
Loading