~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix: Skip LLM provider tests when using fallback LLM
LearningCircuit4118cd57ab71
diff --git a/tests/programmatic_access/test_programmatic_access.py b/tests/programmatic_access/test_programmatic_access.pyindex 10b3fe546b..f31c4b7dc7 100644--- a/tests/programmatic_access/test_programmatic_access.py+++ b/tests/programmatic_access/test_programmatic_access.py@@ -21,6 +21,23 @@ def test_import_without_database():"search.iterations": {"value": 1, "type": "int"},"search.questions_per_iteration": {"value": 2, "type": "int"},"search.strategy": {"value": "direct", "type": "str"},+ "search.max_results_per_query": {"value": 10, "type": "int"},+ "search.source_strategy.diversity_threshold": {+ "value": 0.8,+ "type": "float",+ },+ "search.source_strategy.min_relevance_score": {+ "value": 0.5,+ "type": "float",+ },+ "search.source_strategy.max_sources_per_topic": {+ "value": 5,+ "type": "int",+ },+ "search.source_strategy.enable_clustering": {+ "value": False,+ "type": "bool",+ },}# Pass programmatic_mode as explicit parameter@@ -64,6 +81,23 @@ def test_analyze_topic_without_database():"search.iterations": {"value": 1, "type": "int"},"search.questions_per_iteration": {"value": 2, "type": "int"},"search.strategy": {"value": "direct", "type": "str"},+ "search.max_results_per_query": {"value": 10, "type": "int"},+ "search.source_strategy.diversity_threshold": {+ "value": 0.8,+ "type": "float",+ },+ "search.source_strategy.min_relevance_score": {+ "value": 0.5,+ "type": "float",+ },+ "search.source_strategy.max_sources_per_topic": {+ "value": 5,+ "type": "int",+ },+ "search.source_strategy.enable_clustering": {+ "value": False,+ "type": "bool",+ },}# Create system with programmatic_mode as parameterdiff --git a/tests/test_api_key_configuration.py b/tests/test_api_key_configuration.pyindex 01058221b5..3f6fa64f64 100644--- a/tests/test_api_key_configuration.py+++ b/tests/test_api_key_configuration.py@@ -3,6 +3,7 @@ Tests for API key configuration and LLM execution.Tests that API keys can be set and used properly for different LLM providers."""+import osimport pytestfrom unittest.mock import Mock, patch@@ -14,6 +15,12 @@ from local_deep_research.config.llm_config import ()from local_deep_research.settings import SettingsManager+# Skip all tests in this module when using fallback LLM+pytestmark = pytest.mark.skipif(+ os.environ.get("LDR_USE_FALLBACK_LLM", "") == "true",+ reason="These tests require real LLM providers, not fallback",+)+class TestAPIKeyConfiguration:"""Test API key configuration for different providers."""diff --git a/tests/test_llm_provider_integration.py b/tests/test_llm_provider_integration.pyindex 19ba382e08..bd0bd4a664 100644--- a/tests/test_llm_provider_integration.py+++ b/tests/test_llm_provider_integration.py@@ -3,10 +3,17 @@ Integration tests for LLM provider configuration and execution.Tests the full flow from API key configuration to research execution."""+import osimport pytestfrom unittest.mock import Mock, patchfrom local_deep_research.settings import SettingsManager+# Skip all tests in this module when using fallback LLM+pytestmark = pytest.mark.skipif(+ os.environ.get("LDR_USE_FALLBACK_LLM", "") == "true",+ reason="These tests require real LLM providers, not fallback",+)+class TestLLMProviderIntegration:"""Test complete LLM provider integration scenarios."""diff --git a/tests/test_openai_api_key_usage.py b/tests/test_openai_api_key_usage.pyindex 1462e2f3fa..82e81ebdaf 100644--- a/tests/test_openai_api_key_usage.py+++ b/tests/test_openai_api_key_usage.py@@ -13,6 +13,12 @@ import osfrom local_deep_research.config.llm_config import get_llm+# Skip all tests in this module when using fallback LLM+pytestmark = pytest.mark.skipif(+ os.environ.get("LDR_USE_FALLBACK_LLM", "") == "true",+ reason="These tests require real LLM providers, not fallback",+)+class TestOpenAIAPIKeyUsage:"""Test OpenAI API key configuration and usage throughout the system."""diff --git a/tests/test_search_system.py b/tests/test_search_system.pyindex 7e4869566b..6f3cc35a3d 100644--- a/tests/test_search_system.py+++ b/tests/test_search_system.py@@ -1,3 +1,4 @@+import osimport sysfrom pathlib import Pathfrom unittest.mock import Mock@@ -7,6 +8,12 @@ import pytest# Handle import paths for testingsys.path.append(str(Path(__file__).parent.parent))+# Skip all tests in this module when using fallback LLM+pytestmark = pytest.mark.skipif(+ os.environ.get("LDR_USE_FALLBACK_LLM", "") == "true",+ reason="These tests require real LLM providers, not fallback",+)+@pytest.fixturedef mock_llm():