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: Add database manager mock for authenticated tests

LearningCircuiteffba74735b8
diff --git a/tests/test_followup_api.py b/tests/test_followup_api.py
index f1698a4b7b..8138d7c027 100644
--- a/tests/test_followup_api.py
+++ b/tests/test_followup_api.py
@@ -23,6 +23,16 @@ from local_deep_research.followup_research.service import (
class TestFollowUpAPI:
"""Test suite for follow-up research API endpoints."""
+ @pytest.fixture(autouse=True)
+ def mock_db_manager(self):
+ """Mock the database manager for all tests."""
+ with patch(
+ "local_deep_research.web.auth.decorators.db_manager"
+ ) as mock_db:
+ # Mock the database connection check
+ mock_db.connections = {"testuser": MagicMock()}
+ yield mock_db
+
@pytest.fixture
def app(self):
"""Create test Flask app."""