~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
test: tighten 2 broad-status-list tautologies in context_overflow_api routes (#4273)
LearningCircuita3b8be093630
diff --git a/tests/web/routes/test_context_overflow_api.py b/tests/web/routes/test_context_overflow_api.pyindex 052bcb7309..914ec05172 100644--- a/tests/web/routes/test_context_overflow_api.py+++ b/tests/web/routes/test_context_overflow_api.py@@ -492,8 +492,11 @@ class TestModelStatsFormatting:class TestContextOverflowApiRoutes:"""Tests for context overflow API routes."""- def test_context_overflow_metrics_route_exists(self):- """Test /api/context-overflow/metrics route exists."""+ def test_metrics_url_with_suffix_is_not_registered(self):+ """The metrics endpoint is mounted at /api/context-overflow (no+ /metrics suffix). A GET to /api/context-overflow/metrics+ therefore must 404 — pinning this so a future URL prefix change+ can't silently move the route."""from flask import Flaskfrom local_deep_research.web.routes.context_overflow_api import (context_overflow_bp,@@ -505,11 +508,14 @@ class TestContextOverflowApiRoutes:with app.test_client() as client:response = client.get("/api/context-overflow/metrics")- # Route may exist with different URL prefix - any response is valid- assert response.status_code in [200, 302, 401, 403, 404, 500]-- def test_research_context_overflow_route_exists(self):- """Test /api/context-overflow/research/<id> route exists."""+ assert response.status_code == 404, response.status_code++ def test_research_context_overflow_route_requires_auth(self):+ """The research-context-overflow route is wrapped in+ @login_required; with no auth set up, the decorator must+ short-circuit with 401 (not 200, not 404). Note: the route+ URL is /api/research/<id>/context-overflow (not the inverse+ ordering that the previous test name suggested)."""from flask import Flaskfrom local_deep_research.web.routes.context_overflow_api import (context_overflow_bp,@@ -520,8 +526,8 @@ class TestContextOverflowApiRoutes:app.register_blueprint(context_overflow_bp)with app.test_client() as client:- response = client.get("/api/context-overflow/research/123")- assert response.status_code in [200, 302, 401, 403, 404, 500]+ response = client.get("/api/research/123/context-overflow")+ assert response.status_code == 401, response.status_codeclass TestContextOverflowBlueprintImport: