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.

test: delete 2 H4_ASSERTS_MOCK tests in test_parallel_explorer.py (#4284)

LearningCircuita9c6565d17f9
diff --git a/tests/advanced_search_system/candidate_exploration/test_parallel_explorer.py b/tests/advanced_search_system/candidate_exploration/test_parallel_explorer.py
index 3f0668a225..77391fd414 100644
--- a/tests/advanced_search_system/candidate_exploration/test_parallel_explorer.py
+++ b/tests/advanced_search_system/candidate_exploration/test_parallel_explorer.py
@@ -671,41 +671,6 @@ class TestExploreMethod:
assert len(result.exploration_paths) > 0
assert "Round 1" in result.exploration_paths[0]
- def test_explore_deduplicates_candidates(self):
- """Explore method deduplicates candidates."""
- from unittest.mock import patch
-
- from local_deep_research.advanced_search_system.candidate_exploration.parallel_explorer import (
- ParallelExplorer,
- )
- from local_deep_research.advanced_search_system.candidates.base_candidate import (
- Candidate,
- )
-
- mock_model = Mock()
- mock_model.invoke.return_value.content = ""
- mock_engine = Mock()
-
- explorer = ParallelExplorer(mock_model, mock_engine, max_rounds=1)
-
- # Same candidate returned multiple times
- candidates = [Candidate(name="Duplicate"), Candidate(name="Duplicate")]
-
- with patch.object(explorer, "_execute_search", return_value=[]):
- with patch.object(
- explorer,
- "_extract_candidates_from_results",
- return_value=candidates,
- ):
- with patch.object(
- explorer,
- "_deduplicate_candidates",
- return_value=[Candidate(name="Duplicate")],
- ) as mock_dedup:
- explorer.explore("test query")
-
- mock_dedup.assert_called()
-
def test_explore_limits_to_max_candidates(self):
"""Explore method limits results to max_candidates."""
from unittest.mock import patch
@@ -919,44 +884,6 @@ class TestExploreMethod:
# Should stop early due to _should_continue_exploration returning False
assert result.metadata["rounds"] == 1
- def test_explore_ranks_candidates(self):
- """Explore method ranks candidates by relevance."""
- from unittest.mock import patch
-
- from local_deep_research.advanced_search_system.candidate_exploration.parallel_explorer import (
- ParallelExplorer,
- )
- from local_deep_research.advanced_search_system.candidates.base_candidate import (
- Candidate,
- )
-
- mock_model = Mock()
- mock_model.invoke.return_value.content = ""
- mock_engine = Mock()
-
- explorer = ParallelExplorer(mock_model, mock_engine, max_rounds=1)
-
- candidates = [Candidate(name="A"), Candidate(name="B")]
- ranked = [Candidate(name="B"), Candidate(name="A")]
-
- with patch.object(explorer, "_execute_search", return_value=[]):
- with patch.object(
- explorer,
- "_extract_candidates_from_results",
- return_value=candidates,
- ):
- with patch.object(
- explorer, "_deduplicate_candidates", return_value=candidates
- ):
- with patch.object(
- explorer,
- "_rank_candidates_by_relevance",
- return_value=ranked,
- ) as mock_rank:
- explorer.explore("test query")
-
- mock_rank.assert_called()
-
def test_explore_tracks_unique_candidates(self):
"""Explore method tracks unique candidate count."""
from unittest.mock import patch