~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 1 status-or-tautology + delete 3 hasattr-only tests (#4271)
LearningCircuit2166d2c038a8
diff --git a/tests/advanced_search_system/candidate_exploration/test_diversity_explorer.py b/tests/advanced_search_system/candidate_exploration/test_diversity_explorer.pyindex 09e8be1ec5..f4891f9e6b 100644--- a/tests/advanced_search_system/candidate_exploration/test_diversity_explorer.py+++ b/tests/advanced_search_system/candidate_exploration/test_diversity_explorer.py@@ -99,23 +99,6 @@ class TestDiversityExplorerCategorization:assert len(explorer.diversity_categories) == 0- def test_categorize_candidates_method_exists(- self, mock_search_engine, mock_model- ):- """Test that categorize_candidates method exists."""- from local_deep_research.advanced_search_system.candidate_exploration.diversity_explorer import (- DiversityExplorer,- )-- explorer = DiversityExplorer(- search_engine=mock_search_engine,- model=mock_model,- )-- # Verify method exists- assert hasattr(explorer, "_categorize_candidates")- assert callable(explorer._categorize_candidates)-class TestDiversityExplorerScoring:"""Tests for diversity score calculation."""@@ -137,40 +120,6 @@ class TestDiversityExplorerScoring:score = explorer._calculate_diversity_score([])assert 0 <= score <= 1- def test_diversity_score_method_exists(- self, mock_search_engine, mock_model- ):- """Diversity score method should exist."""- from local_deep_research.advanced_search_system.candidate_exploration.diversity_explorer import (- DiversityExplorer,- )-- explorer = DiversityExplorer(- search_engine=mock_search_engine,- model=mock_model,- )-- # Verify method exists- assert hasattr(explorer, "_calculate_diversity_score")- assert callable(explorer._calculate_diversity_score)-- def test_determine_category_method_exists(- self, mock_search_engine, mock_model- ):- """Determine category method should exist."""- from local_deep_research.advanced_search_system.candidate_exploration.diversity_explorer import (- DiversityExplorer,- )-- explorer = DiversityExplorer(- search_engine=mock_search_engine,- model=mock_model,- )-- # Verify method exists- assert hasattr(explorer, "_determine_category")- assert callable(explorer._determine_category)-@pytest.mark.timeout(120)class TestDiversityExplorerExploration:diff --git a/tests/auth_tests/test_auth_rate_limiting.py b/tests/auth_tests/test_auth_rate_limiting.pyindex c3183469f1..69401888b5 100644--- a/tests/auth_tests/test_auth_rate_limiting.py+++ b/tests/auth_tests/test_auth_rate_limiting.py@@ -72,12 +72,14 @@ class TestAuthRateLimiting:data={"username": f"testuser{i}", "password": "wrongpassword"},follow_redirects=False,)- # Should get 401 (invalid credentials) not 429 (rate limit)- assert response.status_code in [- 200,- 401,- 400,- ], f"Attempt {i + 1} should not be rate limited"+ # Should get 401 (invalid credentials), NOT 429 (rate limit).+ # Tightened from `status_code in [200, 401, 400]` (PUNCHLIST+ # H8_STATUS_OR) — that broad list masked bugs where the auth+ # path silently returned 400 / 200 for wrong credentials.+ assert response.status_code == 401, (+ f"Attempt {i + 1}: wrong-credential login must return 401, "+ f"got {response.status_code}"+ )def test_login_rate_limit_blocks_6th_attempt(self, client):"""Test that login blocks the 6th attempt within 15 minutes."""