~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(tests): fix Serper and Ollama test failures (#1392)
LearningCircuitbb7a00d0f29f
diff --git a/.github/workflows/version_check.yml b/.github/workflows/version_check.ymlindex 03fdf6a671..d1be06cef2 100644--- a/.github/workflows/version_check.yml+++ b/.github/workflows/version_check.yml@@ -54,6 +54,18 @@ jobs:HEAD_REF: ${{ github.head_ref }}BASE_REF: ${{ github.base_ref }}run: |+ # Skip auto-bump for protected branches (dev, main) - these require PRs for changes+ if [[ "${HEAD_REF}" == "dev" || "${HEAD_REF}" == "main" ]]; then+ echo "::notice::Skipping auto-bump for protected branch '${HEAD_REF}'. Please bump version manually if needed."+ # Check if version was updated and inform+ if ! git diff "origin/${BASE_REF}..HEAD" -G"__version__" | grep -E '\+.*__version__.*='; then+ echo "::warning::Version was not updated in this PR. Consider bumping the version before merging."+ else+ echo "Version has been updated manually. No auto-bump needed."+ fi+ exit 0+ fi+if ! git diff "origin/${BASE_REF}..HEAD" -G"__version__" | grep -E '\+.*__version__.*='; thenecho "Version not updated. Auto-bumping patch version..."diff --git a/tests/llm_providers/test_ollama_provider.py b/tests/llm_providers/test_ollama_provider.pyindex 1d237ff3df..a0e01a9a4a 100644--- a/tests/llm_providers/test_ollama_provider.py+++ b/tests/llm_providers/test_ollama_provider.py@@ -149,11 +149,11 @@ class TestOllamaListModels:def test_list_models_returns_list(self, mock_ollama_response):"""Returns list of models."""with patch(- "local_deep_research.llm.providers.implementations.ollama.get_setting_from_snapshot",+ "src.local_deep_research.llm.providers.implementations.ollama.get_setting_from_snapshot",return_value="http://localhost:11434",):with patch(- "local_deep_research.utilities.llm_utils.fetch_ollama_models"+ "src.local_deep_research.utilities.llm_utils.fetch_ollama_models") as mock_fetch:mock_fetch.return_value = [{"value": "llama2:latest", "label": "llama2 (Ollama)"},@@ -168,7 +168,7 @@ class TestOllamaListModels:def test_list_models_empty_without_url(self):"""Returns empty list when URL not configured."""with patch(- "local_deep_research.llm.providers.implementations.ollama.get_setting_from_snapshot",+ "src.local_deep_research.llm.providers.implementations.ollama.get_setting_from_snapshot",return_value=None,):result = OllamaProvider.list_models_for_api()@@ -177,11 +177,11 @@ class TestOllamaListModels:def test_list_models_includes_provider_info(self, mock_ollama_response):"""Model entries include provider information."""with patch(- "local_deep_research.llm.providers.implementations.ollama.get_setting_from_snapshot",+ "src.local_deep_research.llm.providers.implementations.ollama.get_setting_from_snapshot",return_value="http://localhost:11434",):with patch(- "local_deep_research.utilities.llm_utils.fetch_ollama_models"+ "src.local_deep_research.utilities.llm_utils.fetch_ollama_models") as mock_fetch:mock_fetch.return_value = [{"value": "llama2:latest", "label": "llama2"},diff --git a/tests/search_engines/test_search_engine_serper.py b/tests/search_engines/test_search_engine_serper.pyindex 0396ba8186..2bb61381ce 100644--- a/tests/search_engines/test_search_engine_serper.py+++ b/tests/search_engines/test_search_engine_serper.py@@ -302,7 +302,7 @@ class TestSerperTimePeriodMapping:"""Test time period 'day' is mapped correctly."""captured_payload = {}- def capture_post(url, headers, json, timeout):+ def capture_post(url, headers=None, json=None, timeout=None):captured_payload.update(json)mock_response = Mock()mock_response.status_code = 200@@ -311,7 +311,7 @@ class TestSerperTimePeriodMapping:return mock_responsemonkeypatch.setattr(- "local_deep_research.web_search_engines.engines.search_engine_serper.requests.post",+ "local_deep_research.web_search_engines.engines.search_engine_serper.safe_post",capture_post,)