Skip to content

Self-improving AI Employees for everyone

test: fix 4 pre-existing failures (drift since prior commits)

trohitgbe4eae78dfc7
diff --git a/server/tests/conftest.py b/server/tests/conftest.py
index fb6363ad..5f925c64 100644
--- a/server/tests/conftest.py
+++ b/server/tests/conftest.py
@@ -62,6 +62,7 @@ _make_submodule(
{
"get_logger": MagicMock(return_value=MagicMock()),
"log_execution_time": _stub_log_execution_time,
+ "log_api_call": MagicMock(),
},
)
_make_submodule("core", "container", {"container": MagicMock()})
diff --git a/server/tests/credentials/test_websocket_handlers.py b/server/tests/credentials/test_websocket_handlers.py
index 884c8f0f..2f67a318 100644
--- a/server/tests/credentials/test_websocket_handlers.py
+++ b/server/tests/credentials/test_websocket_handlers.py
@@ -111,12 +111,16 @@ class TestValidateApiKey:
patched_container.broadcaster.update_api_key_status.assert_awaited_once()
@patch("services.ai.PROVIDER_CONFIGS", {})
+ @patch.object(ws_module, "_SPECIAL_PROVIDER_VALIDATORS", {})
async def test_validate_skips_model_fetch_for_non_llm(
self, patched_container, fake_ws
):
+ # Pick a provider that's neither in PROVIDER_CONFIGS (LLM) nor in
+ # _SPECIAL_PROVIDER_VALIDATORS (Google Maps / Apify probe). The
+ # handler should fall through to the empty-models path.
result = await _call(
ws_module.handle_validate_api_key,
- {"provider": "google_maps", "api_key": "AIza-test"},
+ {"provider": "anonymous_provider", "api_key": "any-test"},
fake_ws,
)
diff --git a/server/tests/llm/test_factory.py b/server/tests/llm/test_factory.py
index 6ba79df5..bf0639dc 100644
--- a/server/tests/llm/test_factory.py
+++ b/server/tests/llm/test_factory.py
@@ -8,7 +8,10 @@ from services.llm.protocol import LLMProvider
def test_native_providers_set():
- assert NATIVE_PROVIDERS == {"anthropic", "openai", "gemini", "openrouter", "xai"}
+ assert NATIVE_PROVIDERS == {
+ "anthropic", "openai", "gemini", "openrouter", "xai",
+ "deepseek", "kimi", "mistral",
+ }
def test_is_native_provider():
diff --git a/server/tests/llm/test_wiring.py b/server/tests/llm/test_wiring.py
index 75802889..5b092e5a 100644
--- a/server/tests/llm/test_wiring.py
+++ b/server/tests/llm/test_wiring.py
@@ -137,8 +137,8 @@ async def test_execute_chat_native_with_thinking(ai_service):
"api_key": "sk-ant-test",
"model": "claude-sonnet-4-6",
"prompt": "Think about this",
- "thinkingEnabled": True,
- "thinkingBudget": 4096,
+ "thinking_enabled": True,
+ "thinking_budget": 4096,
},
)