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.

fix: resolve test naming conflicts and fix test timeouts (#2033)

LearningCircuite66521e59a9e
diff --git a/src/local_deep_research/api/benchmark_functions.py b/src/local_deep_research/api/benchmark_functions.py
index f3dac40598..ce4d47b55c 100644
--- a/src/local_deep_research/api/benchmark_functions.py
+++ b/src/local_deep_research/api/benchmark_functions.py
@@ -297,7 +297,7 @@ def compare_configurations(
# Generate comparison report
import time
- from ...security.file_write_verifier import write_file_verified
+ from ..security.file_write_verifier import write_file_verified
timestamp = time.strftime("%Y%m%d_%H%M%S")
report_file = str(
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 5ad4cc6412..a3d49c29be 100644
--- a/tests/advanced_search_system/candidate_exploration/test_diversity_explorer.py
+++ b/tests/advanced_search_system/candidate_exploration/test_diversity_explorer.py
@@ -193,14 +193,18 @@ class TestDiversityExplorerExploration:
max_time=10.0,
)
- # Mock the search to return empty results
+ # Mock the search to return empty results and ensure loop exits quickly
with patch.object(explorer, "_execute_search", return_value=[]):
with patch.object(
explorer, "_extract_candidates_from_results", return_value=[]
):
- result = explorer.explore("test query")
+ # Mock _should_continue_exploration to return False to exit loop
+ with patch.object(
+ explorer, "_should_continue_exploration", return_value=False
+ ):
+ result = explorer.explore("test query")
- assert isinstance(result, ExplorationResult)
+ assert isinstance(result, ExplorationResult)
def test_explore_tracks_exploration_paths(
self, mock_search_engine, mock_model
@@ -221,10 +225,14 @@ class TestDiversityExplorerExploration:
with patch.object(
explorer, "_extract_candidates_from_results", return_value=[]
):
- result = explorer.explore("test query")
+ # Mock _should_continue_exploration to return False to exit loop
+ with patch.object(
+ explorer, "_should_continue_exploration", return_value=False
+ ):
+ result = explorer.explore("test query")
- assert hasattr(result, "exploration_paths")
- assert len(result.exploration_paths) >= 1
+ assert hasattr(result, "exploration_paths")
+ assert len(result.exploration_paths) >= 1
def test_explore_completes_successfully(
self, mock_search_engine, mock_model
@@ -245,10 +253,14 @@ class TestDiversityExplorerExploration:
with patch.object(
explorer, "_extract_candidates_from_results", return_value=[]
):
- result = explorer.explore("test query")
-
- # Should complete successfully
- assert result is not None
+ # Mock _should_continue_exploration to return False to exit loop
+ with patch.object(
+ explorer, "_should_continue_exploration", return_value=False
+ ):
+ result = explorer.explore("test query")
+
+ # Should complete successfully
+ assert result is not None
class TestDiversityExplorerShouldContinue:
diff --git a/tests/core/test_report_generator_extended.py b/tests/core/test_integrated_report_generator.py
similarity index 100%
rename from tests/core/test_report_generator_extended.py
rename to tests/core/test_integrated_report_generator.py