fix(test): tolerate owner kwarg in compaction summary resolve_endpoint mock (#3304)

#2996 made context_compactor call resolve_endpoint('utility', owner=owner),
but the mock added by #2174 stubbed it as lambda which: ..., which rejects the
owner kwarg. Each PR passed alone; merged on dev the two compaction tests fail
with TypeError and the pytest job goes red. Widen the mock to lambda *a, **k.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Kenny Van de Maele
2026-06-07 17:23:06 +02:00
committed by GitHub
parent 613bbb0dba
commit 8f2c8d2dc8
+1 -1
View File
@@ -48,7 +48,7 @@ class TestCompactionSummaryFailure:
cc.get_context_length = lambda url, model: context_length
cc.estimate_tokens = lambda msgs: 10000 # well over the threshold
cc.llm_call_async = _boom
cc.resolve_endpoint = lambda which: (None, None, None)
cc.resolve_endpoint = lambda *a, **k: (None, None, None)
cc._update_session_history = lambda *a, **k: None
try:
return asyncio.run(