~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(settings): remove stale duplicate cleanup rate-limit tests (#4735 follow-up) (#4741)
LearningCircuit46688640f77d
diff --git a/tests/web/routes/test_settings_routes_coverage.py b/tests/web/routes/test_settings_routes_coverage.pyindex 6973a815c9..015c7be0eb 100644--- a/tests/web/routes/test_settings_routes_coverage.py+++ b/tests/web/routes/test_settings_routes_coverage.py@@ -19,6 +19,11 @@ Targets uncovered code paths including:- legacy redirect routes- open_file_location- inject_csrf_token++Note: rate-limiting endpoints (/api/rate-limiting/status, /reset, /cleanup)+are covered in the dedicated test_settings_routes_rate_limiting.py, not here,+to keep one canonical home per endpoint and avoid the duplicate-test drift that+previously occurred for /api/rate-limiting/cleanup (#4735)."""from unittest.mock import patch, MagicMock@@ -1450,41 +1455,11 @@ class TestApiGetDataLocation:assert data["platform"] == "macOS"-class TestApiCleanupRateLimiting:- """POST /settings/api/rate-limiting/cleanup"""-- @patch("local_deep_research.web_search_engines.rate_limiting.get_tracker")- def test_cleanup_with_default_days(- self, mock_tracker_fn, authenticated_client- ):- mock_tracker = MagicMock()- mock_tracker_fn.return_value = mock_tracker- resp = authenticated_client.post(- f"{SETTINGS_PREFIX}/api/rate-limiting/cleanup"- )- assert resp.status_code == 200- mock_tracker.cleanup_old_data.assert_called_once_with(30)-- @patch("local_deep_research.web_search_engines.rate_limiting.get_tracker")- def test_cleanup_with_custom_days(- self, mock_tracker_fn, authenticated_client- ):- mock_tracker = MagicMock()- mock_tracker_fn.return_value = mock_tracker- resp = authenticated_client.post(- f"{SETTINGS_PREFIX}/api/rate-limiting/cleanup",- json={"days": 7},- )- assert resp.status_code == 200- mock_tracker.cleanup_old_data.assert_called_once_with(7)-- @patch("local_deep_research.web_search_engines.rate_limiting.get_tracker")- def test_cleanup_error(self, mock_tracker_fn, authenticated_client):- mock_tracker_fn.side_effect = RuntimeError("fail")- resp = authenticated_client.post(- f"{SETTINGS_PREFIX}/api/rate-limiting/cleanup"- )- assert resp.status_code == 500+# NOTE: /api/rate-limiting/cleanup is covered by the canonical DB-backed tests+# in test_settings_routes_rate_limiting.py::TestApiCleanupRateLimiting (auth,+# default/custom-window delete + commit, 500 path, and days validation). The+# duplicate class that used to live here patched the removed get_tracker() path+# (#4735) and drifted stale; removed to avoid two copies diverging again.class TestSaveAllSettingsNewSettingTypes: