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(test): update report generator tests to expect numbered headings (#3604)

LearningCircuitf70820b3465f
diff --git a/tests/report/test_report_generator_progress.py b/tests/report/test_report_generator_progress.py
index 7f65b40b79..27474e6736 100644
--- a/tests/report/test_report_generator_progress.py
+++ b/tests/report/test_report_generator_progress.py
@@ -1180,8 +1180,8 @@ class TestSectionContentAssembly:
)
content = sections["Analysis"]
- assert "## Data Review" in content
- assert "## Interpretation" in content
+ assert "## 1.1 Data Review" in content
+ assert "## 1.2 Interpretation" in content
def test_single_subsection_section_omits_subsection_header(
self, generator, initial_findings
@@ -1226,7 +1226,7 @@ class TestSectionContentAssembly:
initial_findings, structure, "test query"
)
- assert sections["My Section"].startswith("# My Section")
+ assert sections["My Section"].startswith("# 1. My Section")
def test_subsection_content_from_analyze_topic_included(
self, generator, initial_findings
diff --git a/tests/report/test_report_generator_report_extended.py b/tests/report/test_report_generator_report_extended.py
index 54743e6477..67b00f1af7 100644
--- a/tests/report/test_report_generator_report_extended.py
+++ b/tests/report/test_report_generator_report_extended.py
@@ -908,8 +908,8 @@ class TestResearchAndGenerateSectionsEdgeCases:
)
# Both subsections should have headers
- assert "## First Sub" in sections["Main Section"]
- assert "## Second Sub" in sections["Main Section"]
+ assert "## 1.1 First Sub" in sections["Main Section"]
+ assert "## 1.2 Second Sub" in sections["Main Section"]
def test_single_subsection_no_extra_header(self):
"""Test single subsection doesn't get extra header."""
diff --git a/tests/test_report_generator.py b/tests/test_report_generator.py
index 7dceec65e4..4856b6576a 100644
--- a/tests/test_report_generator.py
+++ b/tests/test_report_generator.py
@@ -179,10 +179,10 @@ def test_research_and_generate_sections(report_generator):
# Verify sections were generated correctly
assert "Introduction" in sections
assert "Findings" in sections
- assert "# Introduction" in sections["Introduction"]
+ assert "# 1. Introduction" in sections["Introduction"]
assert "Background section content" in sections["Introduction"]
- assert "# Findings" in sections["Findings"]
+ assert "# 2. Findings" in sections["Findings"]
assert "Key results section content" in sections["Findings"]
# Verify search system was called the correct number of times (once per subsection)
diff --git a/tests/test_report_generator_coverage.py b/tests/test_report_generator_coverage.py
index 01913d325c..1ce3aeac32 100644
--- a/tests/test_report_generator_coverage.py
+++ b/tests/test_report_generator_coverage.py
@@ -683,8 +683,8 @@ class TestSubsectionHeaders:
{"current_knowledge": "init"}, structure, "q"
)
- assert "## SubA" in sections["S"]
- assert "## SubB" in sections["S"]
+ assert "## 1.1 SubA" in sections["S"]
+ assert "## 1.2 SubB" in sections["S"]
# ---------------------------------------------------------------------------