Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

Fix test_invalid_provider_after_checking_registry for CI environment

LearningCircuit636a81797f3e
diff --git a/tests/test_llm/test_llm_integration.py b/tests/test_llm/test_llm_integration.py
index 7d27b42665..1f0a9dd218 100644
--- a/tests/test_llm/test_llm_integration.py
+++ b/tests/test_llm/test_llm_integration.py
@@ -218,9 +218,12 @@ def test_factory_error_handling():
get_llm(provider="failing_factory")
-def test_invalid_provider_after_checking_registry():
+def test_invalid_provider_after_checking_registry(monkeypatch):
"""Test that invalid provider error is raised for non-existent providers."""
# Don't register anything
+ # Ensure LDR_USE_FALLBACK_LLM is not set for this test
+ monkeypatch.delenv("LDR_USE_FALLBACK_LLM", raising=False)
+
with pytest.raises(ValueError, match="Invalid provider: fake_provider"):
get_llm(provider="fake_provider")