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: Fix PDF export test to use correct report endpoint

LearningCircuitf92ea7c5ec28
diff --git a/tests/api_tests_with_login/pytest_tests/test_export_formats.py b/tests/api_tests_with_login/pytest_tests/test_export_formats.py
index e711735c98..7ea2a694e0 100644
--- a/tests/api_tests_with_login/pytest_tests/test_export_formats.py
+++ b/tests/api_tests_with_login/pytest_tests/test_export_formats.py
@@ -98,18 +98,14 @@ def test_export_pdf_via_javascript(auth_session, base_url):
print(f"Started research {research_id}, waiting for completion...")
time.sleep(10)
- # Get the research status to ensure it has content
- status_response = session.get(
- f"{base_url}/api/research/{research_id}/status"
- )
- assert status_response.status_code == 200
+ # Get the research report content
+ report_response = session.get(f"{base_url}/api/report/{research_id}")
+ assert report_response.status_code == 200
- status_data = status_response.json()
- assert "content" in status_data or "markdown" in status_data, (
- "No content in report"
- )
+ report_data = report_response.json()
+ assert "content" in report_data, "No content in report"
- content = status_data.get("content") or status_data.get("markdown", "")
+ content = report_data.get("content", "")
assert len(content) > 100, (
f"Report content too short for PDF: {len(content)} bytes"
)