mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-15 17:25:26 -04:00
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:
committed by
GitHub
parent
613bbb0dba
commit
8f2c8d2dc8
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user