~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: remove two misleading *WithMocks tests in test_flask_api_routes.py (#4190)
LearningCircuit1746941e70dd
diff --git a/tests/news/test_flask_api_routes.py b/tests/news/test_flask_api_routes.pyindex 02f1bb563a..af6b53651f 100644--- a/tests/news/test_flask_api_routes.py+++ b/tests/news/test_flask_api_routes.py@@ -19,7 +19,7 @@ separately."""import pytest-from unittest.mock import MagicMock, patch+from unittest.mock import patchfrom flask import Flask@@ -264,85 +264,3 @@ class TestErrorHandlers:# ============= Run Subscription Now Tests =============---# ============= SUT integration tests (mock auth + mock backend) =============---class TestNewsFeedWithMocks:- """Integration tests for news feed with mocking."""-- def test_feed_returns_news_items(self, app):- """Test that feed returns news items when properly mocked."""- with app.test_client() as client:- with patch(- "local_deep_research.news.flask_api.login_required", lambda f: f- ):- with patch(- "local_deep_research.news.flask_api.get_user_id",- return_value="testuser",- ):- with patch(- "local_deep_research.news.flask_api.get_settings_manager"- ) as mock_settings:- mock_mgr = MagicMock()- mock_mgr.get_setting.return_value = 20- mock_settings.return_value = mock_mgr-- with patch(- "local_deep_research.news.flask_api.api.get_news_feed"- ) as mock_feed:- mock_feed.return_value = {- "news_items": [- {"id": "1", "title": "Test News 1"},- {"id": "2", "title": "Test News 2"},- ]- }-- # Route already registered- response = client.get("/news/api/feed")- # May or may not work depending on decorator patching- assert response.status_code in [- 200,- 302,- 401,- 403,- 500,- ]---class TestSubscriptionWithMocks:- """Integration tests for subscription endpoints with mocking."""-- def test_create_subscription_success(self, app):- """Test successful subscription creation with mocks."""- with app.test_client() as client:- with patch(- "local_deep_research.news.flask_api.login_required", lambda f: f- ):- with patch(- "local_deep_research.news.flask_api.get_user_id",- return_value="testuser",- ):- with patch(- "local_deep_research.news.flask_api.api.create_subscription"- ) as mock_create:- mock_create.return_value = {- "id": "sub123",- "query": "test query",- "status": "active",- }-- response = client.post(- "/news/api/subscribe",- json={"query": "test query"},- content_type="application/json",- )- assert response.status_code in [- 200,- 302,- 400,- 401,- 403,- 500,- ]