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: remove two diversity_explorer tests for fictional methods (#4191)

LearningCircuit4dcebdb0f705
diff --git a/tests/advanced_search_system/candidate_exploration/test_diversity_explorer.py b/tests/advanced_search_system/candidate_exploration/test_diversity_explorer.py
index f25a93e674..09e8be1ec5 100644
--- a/tests/advanced_search_system/candidate_exploration/test_diversity_explorer.py
+++ b/tests/advanced_search_system/candidate_exploration/test_diversity_explorer.py
@@ -331,77 +331,6 @@ class TestDiversityExplorerShouldContinue:
assert result is True
-class TestDiversityExplorerCategoryLimit:
- """Tests for category limit enforcement."""
-
- def test_category_limit_enforced(self, mock_search_engine, mock_model):
- """Test that category limit is respected."""
- from local_deep_research.advanced_search_system.candidate_exploration.diversity_explorer import (
- DiversityExplorer,
- )
-
- explorer = DiversityExplorer(
- search_engine=mock_search_engine,
- model=mock_model,
- category_limit=2,
- )
-
- # Add candidates until limit
- mock_candidate = Mock(category="science")
-
- if hasattr(explorer, "_should_accept_candidate"):
- # First two should be accepted
- explorer.category_counts["science"] = 0
- result1 = explorer._should_accept_candidate(mock_candidate)
-
- explorer.category_counts["science"] = 1
- result2 = explorer._should_accept_candidate(mock_candidate)
-
- # Third should be rejected if limit is 2
- explorer.category_counts["science"] = 2
- result3 = explorer._should_accept_candidate(mock_candidate)
-
- assert result1 is True
- assert result2 is True
- assert result3 is False
-
-
-class TestDiversityExplorerSimilarityDedup:
- """Tests for similarity-based deduplication."""
-
- def test_similar_candidates_deduplicated(
- self, mock_search_engine, mock_model
- ):
- """Test that similar candidates are deduplicated."""
- from local_deep_research.advanced_search_system.candidate_exploration.diversity_explorer import (
- DiversityExplorer,
- )
-
- explorer = DiversityExplorer(
- search_engine=mock_search_engine,
- model=mock_model,
- similarity_threshold=0.8,
- )
-
- # Create similar candidates
- mock_candidate1 = Mock()
- mock_candidate1.name = "Machine Learning for NLP"
- mock_candidate1.embedding = [0.1] * 10
-
- mock_candidate2 = Mock()
- mock_candidate2.name = (
- "Machine Learning for Natural Language Processing"
- )
- mock_candidate2.embedding = [0.1] * 10 # Same embedding = similar
-
- if hasattr(explorer, "_is_too_similar"):
- existing = [mock_candidate1]
- is_similar = explorer._is_too_similar(mock_candidate2, existing)
-
- # Should detect similarity
- assert isinstance(is_similar, bool)
-
-
class TestDetermineCategoryMethod:
"""Tests for _determine_category method."""