Skip to content

Self-hosted AI workspace.

Python

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

Kenny Van de Maelea8d98851f7b0
diff --git a/tests/test_compaction_summary_failure.py b/tests/test_compaction_summary_failure.py
index f69f7e58d..2a3020c42 100644
--- a/tests/test_compaction_summary_failure.py
+++ b/tests/test_compaction_summary_failure.py
@@ -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(