~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: address review findings — rename misleading test names and fix exception test (#2678)
LearningCircuit3d85c4c493d6
diff --git a/tests/exporters/test_exporter_edge_cases.py b/tests/exporters/test_exporter_edge_cases.pyindex 475cdca51b..7a44144782 100644--- a/tests/exporters/test_exporter_edge_cases.py+++ b/tests/exporters/test_exporter_edge_cases.py@@ -59,8 +59,8 @@ class TestPrependTitleEdgeCases:# lstrip().startswith("#") → True → no prependassert result == "#NoSpace content"- def test_title_partial_match_does_prepend(self):- """Content with '# Title Extra' should NOT match title='Title'."""+ def test_title_partial_match_no_prepend(self):+ """Content starting with '# Title' matches startswith check — no prepend."""exporter = self._get_exporter()# content.startswith("# Title") is True for "# Title Extra"result = exporter._prepend_title_if_needed(diff --git a/tests/security/test_log_sanitizer_edge_cases.py b/tests/security/test_log_sanitizer_edge_cases.pyindex a074536a9c..e3d462ee50 100644--- a/tests/security/test_log_sanitizer_edge_cases.py+++ b/tests/security/test_log_sanitizer_edge_cases.py@@ -10,7 +10,7 @@ from local_deep_research.security.log_sanitizer import sanitize_for_logclass TestSanitizeForLogMaxLengthBoundary:"""Tests for max_length <= 3 branch in sanitize_for_log()."""- def test_max_length_3_returns_ellipsis(self):+ def test_max_length_3_no_ellipsis(self):"""max_length=3 with long input: max_length > 3 is False, so no ellipsis."""result = sanitize_for_log("abcdef", max_length=3)# max_length > 3 is False → falls to else → cleaned[:3]diff --git a/tests/settings/test_parse_edge_cases.py b/tests/settings/test_parse_edge_cases.pyindex 6f2f77ca35..d0e684ff0c 100644--- a/tests/settings/test_parse_edge_cases.py+++ b/tests/settings/test_parse_edge_cases.py@@ -21,11 +21,12 @@ class TestParseNumberEdgeCases:assert _parse_number("1e2") == 100assert isinstance(_parse_number("1e2"), int)- def test_scientific_notation_fractional_returns_float(self):- """1.5e2 = 150.0 which is_integer() → returns int(150)."""+ def test_scientific_notation_whole_float_returns_int(self):+ """1.5e2 = 150.0 which is_integer() is True → returns int(150)."""result = _parse_number("1.5e2")# 150.0.is_integer() is True so this returns intassert result == 150+ assert isinstance(result, int)def test_negative_whole_returns_int(self):assert _parse_number("-5.0") == -5diff --git a/tests/web/auth/test_queue_middleware_v2_behavior.py b/tests/web/auth/test_queue_middleware_v2_behavior.pyindex b1edb4426b..f0e2c750c7 100644--- a/tests/web/auth/test_queue_middleware_v2_behavior.py+++ b/tests/web/auth/test_queue_middleware_v2_behavior.py@@ -175,6 +175,9 @@ class TestNotifyQueueProcessor:def test_exception_caught_silently(self, app):"""Exceptions in queue processing must not propagate."""+ mock_processor = MagicMock()+ mock_processor.notify_user_activity.side_effect = RuntimeError("boom")+with app.test_request_context():flask.g.db_session = MagicMock()with (@@ -190,7 +193,7 @@ class TestNotifyQueueProcessor:"sys.modules",{"local_deep_research.web.queue.processor_v2": MagicMock(- side_effect=ImportError("no module")+ queue_processor=mock_processor)},),@@ -199,5 +202,5 @@ class TestNotifyQueueProcessor:notify_queue_processor,)- # Must not raise+ # Must not raise despite RuntimeError in notify_user_activitynotify_queue_processor()