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: Update report generator test to match new subsection header behavior

LearningCircuitbe1629eb3a37
diff --git a/tests/test_report_generator.py b/tests/test_report_generator.py
index b3c4c4e4df..95b63645f5 100644
--- a/tests/test_report_generator.py
+++ b/tests/test_report_generator.py
@@ -178,25 +178,13 @@ def test_research_and_generate_sections(report_generator):
assert "Introduction" in sections
assert "Findings" in sections
assert "# Introduction" in sections["Introduction"]
- assert "## Background" in sections["Introduction"]
assert "Background section content" in sections["Introduction"]
assert "# Findings" in sections["Findings"]
- assert "## Key Results" in sections["Findings"]
assert "Key results section content" in sections["Findings"]
- # Verify search system was called with appropriate queries
- calls = [
- ("Research query Introduction Background Historical context",),
- ("Research query Findings Key Results Main research outcomes",),
- ]
-
- # Verify the calls were made in the correct order
+ # Verify search system was called the correct number of times (once per subsection)
assert report_generator.search_system.analyze_topic.call_count == 2
- for i, call_args in enumerate(
- report_generator.search_system.analyze_topic.call_args_list
- ):
- assert call_args[0] == calls[i]
def test_format_final_report(report_generator, monkeypatch):