~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: Patch correct function in search_config for text optimization tests
LearningCircuit40035961fdf8
diff --git a/tests/text_optimization/test_integration.py b/tests/text_optimization/test_integration.pyindex f3e66393ac..04cafc471e 100644--- a/tests/text_optimization/test_integration.py+++ b/tests/text_optimization/test_integration.py@@ -18,9 +18,7 @@ from local_deep_research.text_optimization import (class TestResearchServiceIntegration:"""Test integration of text optimization with research service."""- @patch(- "local_deep_research.config.search_config.get_setting_from_db_main_thread"- )+ @patch("local_deep_research.config.search_config.get_setting_from_snapshot")def test_get_citation_formatter_number_mode(self, mock_get_setting):"""Test getting formatter with number hyperlinks mode."""mock_get_setting.return_value = "number_hyperlinks"@@ -29,9 +27,7 @@ class TestResearchServiceIntegration:assert isinstance(formatter, CitationFormatter)assert formatter.mode == CitationMode.NUMBER_HYPERLINKS- @patch(- "local_deep_research.config.search_config.get_setting_from_db_main_thread"- )+ @patch("local_deep_research.config.search_config.get_setting_from_snapshot")def test_get_citation_formatter_domain_mode(self, mock_get_setting):"""Test getting formatter with domain hyperlinks mode."""mock_get_setting.return_value = "domain_hyperlinks"@@ -40,9 +36,7 @@ class TestResearchServiceIntegration:assert isinstance(formatter, CitationFormatter)assert formatter.mode == CitationMode.DOMAIN_HYPERLINKS- @patch(- "local_deep_research.config.search_config.get_setting_from_db_main_thread"- )+ @patch("local_deep_research.config.search_config.get_setting_from_snapshot")def test_get_citation_formatter_no_hyperlinks_mode(self, mock_get_setting):"""Test getting formatter with no hyperlinks mode."""mock_get_setting.return_value = "no_hyperlinks"@@ -51,9 +45,7 @@ class TestResearchServiceIntegration:assert isinstance(formatter, CitationFormatter)assert formatter.mode == CitationMode.NO_HYPERLINKS- @patch(- "local_deep_research.config.search_config.get_setting_from_db_main_thread"- )+ @patch("local_deep_research.config.search_config.get_setting_from_snapshot")def test_get_citation_formatter_invalid_mode(self, mock_get_setting):"""Test getting formatter with invalid mode falls back to default."""mock_get_setting.return_value = "invalid_mode"@@ -101,9 +93,7 @@ This is a test with citation [1].finally:markdown_path.unlink()- @patch(- "local_deep_research.config.search_config.get_setting_from_db_main_thread"- )+ @patch("local_deep_research.config.search_config.get_setting_from_snapshot")def test_real_world_citation_formatting(self, mock_get_setting):"""Test citation formatting with real-world example."""mock_get_setting.return_value = "number_hyperlinks"@@ -256,9 +246,7 @@ This report discusses recent advances [1] and challenges [2].finally:markdown_path.unlink()- @patch(- "local_deep_research.config.search_config.get_setting_from_db_main_thread"- )+ @patch("local_deep_research.config.search_config.get_setting_from_snapshot")def test_automatic_export_formats(self, mock_get_setting):"""Test automatic export to multiple formats based on settings."""# This would be called in the actual research service when saving reports