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: resolve fixture discovery and database mocking issues in tests

LearningCircuitc1d02b9073d6
diff --git a/tests/api_tests/conftest_library.py b/tests/api_tests/conftest.py
similarity index 100%
rename from tests/api_tests/conftest_library.py
rename to tests/api_tests/conftest.py
diff --git a/tests/api_tests/test_collections_api.py b/tests/api_tests/test_collections_api.py
index fd767c0612..9329a9aaea 100644
--- a/tests/api_tests/test_collections_api.py
+++ b/tests/api_tests/test_collections_api.py
@@ -11,8 +11,8 @@ Tests the following endpoints:
import uuid
-# Import helpers from conftest_library
-from .conftest_library import delete_test_collection
+# Import helpers from conftest
+from .conftest import delete_test_collection
class TestGetCollections:
diff --git a/tests/research_library/services/test_download_service.py b/tests/research_library/services/test_download_service.py
index b5a993987a..81dc6c466a 100644
--- a/tests/research_library/services/test_download_service.py
+++ b/tests/research_library/services/test_download_service.py
@@ -577,7 +577,7 @@ class TestDownloadServiceQueueResearchDownloads:
# Mock get_default_library_id
mocker.patch(
- "src.local_deep_research.research_library.services.download_service.get_default_library_id",
+ "src.local_deep_research.database.library_init.get_default_library_id",
return_value="default-lib-id",
)
diff --git a/tests/research_library/services/test_library_rag_service.py b/tests/research_library/services/test_library_rag_service.py
index 98d0aea7d1..092da5dae7 100644
--- a/tests/research_library/services/test_library_rag_service.py
+++ b/tests/research_library/services/test_library_rag_service.py
@@ -18,7 +18,7 @@ class TestLibraryRAGServiceInit:
mock_session.__exit__ = Mock(return_value=False)
mocker.patch(
- "src.local_deep_research.research_library.services.library_rag_service.get_user_db_session",
+ "src.local_deep_research.database.session_context.get_user_db_session",
return_value=mock_session,
)
@@ -74,7 +74,7 @@ class TestLibraryRAGServiceInit:
mock_session.__exit__ = Mock(return_value=False)
mocker.patch(
- "src.local_deep_research.research_library.services.library_rag_service.get_user_db_session",
+ "src.local_deep_research.database.session_context.get_user_db_session",
return_value=mock_session,
)