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.

test: remove 140 import-existence tautology tests across 52 files (#4241)

LearningCircuit8ec5380401c7
diff --git a/tests/advanced_search_system/test_evidence/test_evidence_classes.py b/tests/advanced_search_system/test_evidence/test_evidence_classes.py
index 1e312bb5dc..473555aadc 100644
--- a/tests/advanced_search_system/test_evidence/test_evidence_classes.py
+++ b/tests/advanced_search_system/test_evidence/test_evidence_classes.py
@@ -135,14 +135,6 @@ class TestCandidateExplorationImports:
class TestFindingsImports:
"""Test findings-related classes."""
- def test_findings_repository_import(self):
- """Test FindingsRepository import."""
- from local_deep_research.advanced_search_system.findings.repository import (
- FindingsRepository,
- )
-
- assert FindingsRepository is not None
-
def test_findings_repository_instantiation(self, mock_llm):
"""Test FindingsRepository can be instantiated."""
from local_deep_research.advanced_search_system.findings.repository import (
@@ -157,14 +149,6 @@ class TestFindingsImports:
class TestFiltersImports:
"""Test filter-related classes."""
- def test_cross_engine_filter_import(self):
- """Test CrossEngineFilter import."""
- from local_deep_research.advanced_search_system.filters.cross_engine_filter import (
- CrossEngineFilter,
- )
-
- assert CrossEngineFilter is not None
-
def test_cross_engine_filter_instantiation(self, mock_llm):
"""Test CrossEngineFilter can be instantiated."""
from local_deep_research.advanced_search_system.filters.cross_engine_filter import (
diff --git a/tests/advanced_search_system/test_questions/test_question_generators.py b/tests/advanced_search_system/test_questions/test_question_generators.py
index 8ab6a1792b..6ac9a11b26 100644
--- a/tests/advanced_search_system/test_questions/test_question_generators.py
+++ b/tests/advanced_search_system/test_questions/test_question_generators.py
@@ -27,30 +27,6 @@ class TestQuestionGeneratorImports:
assert AtomicFactQuestionGenerator is not None
assert hasattr(AtomicFactQuestionGenerator, "generate_questions")
- def test_browsecomp_question_generator_import(self):
- """Test BrowseCompQuestionGenerator import."""
- from local_deep_research.advanced_search_system.questions.browsecomp_question import (
- BrowseCompQuestionGenerator,
- )
-
- assert BrowseCompQuestionGenerator is not None
-
- def test_flexible_browsecomp_question_generator_import(self):
- """Test FlexibleBrowseCompQuestionGenerator import."""
- from local_deep_research.advanced_search_system.questions.flexible_browsecomp_question import (
- FlexibleBrowseCompQuestionGenerator,
- )
-
- assert FlexibleBrowseCompQuestionGenerator is not None
-
- def test_news_question_generator_import(self):
- """Test NewsQuestionGenerator import."""
- from local_deep_research.advanced_search_system.questions.news_question import (
- NewsQuestionGenerator,
- )
-
- assert NewsQuestionGenerator is not None
-
class TestStandardQuestionGenerator:
"""Test StandardQuestionGenerator functionality."""
diff --git a/tests/database/test_credential_store_behavior.py b/tests/database/test_credential_store_behavior.py
index eb4a489aca..a82089369e 100644
--- a/tests/database/test_credential_store_behavior.py
+++ b/tests/database/test_credential_store_behavior.py
@@ -281,12 +281,6 @@ class TestCredentialStoreThreadSafety:
class TestGlobalTempAuthStore:
"""Tests for the global temp_auth_store instance."""
- def test_global_instance_exists(self):
- """Global temp_auth_store instance exists."""
- from local_deep_research.database.temp_auth import temp_auth_store
-
- assert temp_auth_store is not None
-
def test_global_instance_is_temporary_auth_store(self):
"""Global instance is TemporaryAuthStore."""
from local_deep_research.database.temp_auth import (
diff --git a/tests/database/test_model_consolidation_extended.py b/tests/database/test_model_consolidation_extended.py
index 8688e6bba4..e47e66426c 100644
--- a/tests/database/test_model_consolidation_extended.py
+++ b/tests/database/test_model_consolidation_extended.py
@@ -16,30 +16,6 @@ from sqlalchemy import inspect
class TestModelImports:
"""Tests for model imports from consolidated location."""
- def test_base_model_importable(self):
- """Base model should be importable."""
- from local_deep_research.database.models import Base
-
- assert Base is not None
-
- def test_user_model_importable(self):
- """User model should be importable."""
- from local_deep_research.database.models import User
-
- assert User is not None
-
- def test_research_history_importable(self):
- """ResearchHistory model should be importable."""
- from local_deep_research.database.models import ResearchHistory
-
- assert ResearchHistory is not None
-
- def test_research_resource_importable(self):
- """ResearchResource model should be importable."""
- from local_deep_research.database.models import ResearchResource
-
- assert ResearchResource is not None
-
def test_benchmark_models_importable(self):
"""Benchmark models should be importable."""
from local_deep_research.database.models import (
@@ -52,18 +28,6 @@ class TestModelImports:
assert BenchmarkResult is not None
assert BenchmarkProgress is not None
- def test_metrics_models_importable(self):
- """Metrics models should be importable."""
- from local_deep_research.database.models import TokenUsage
-
- assert TokenUsage is not None
-
- def test_news_models_importable(self):
- """News models should be importable."""
- from local_deep_research.database.models import NewsSubscription
-
- assert NewsSubscription is not None
-
def test_library_models_importable(self):
"""Library models should be importable."""
from local_deep_research.database.models import (
@@ -177,12 +141,6 @@ class TestColumnDefinitions:
class TestEnumDefinitions:
"""Tests for enum definitions."""
- def test_document_status_enum_exists(self):
- """DocumentStatus enum should exist."""
- from local_deep_research.database.models.library import DocumentStatus
-
- assert DocumentStatus is not None
-
def test_document_status_has_expected_values(self):
"""DocumentStatus should have expected values."""
from local_deep_research.database.models.library import DocumentStatus
@@ -192,12 +150,6 @@ class TestEnumDefinitions:
assert DocumentStatus.COMPLETED.value == "completed"
assert DocumentStatus.FAILED.value == "failed"
- def test_rag_index_status_enum_exists(self):
- """RAGIndexStatus enum should exist."""
- from local_deep_research.database.models.library import RAGIndexStatus
-
- assert RAGIndexStatus is not None
-
def test_embedding_provider_enum_exists(self):
"""EmbeddingProvider enum should exist."""
from local_deep_research.database.models.library import (
diff --git a/tests/database/test_schema_migrations.py b/tests/database/test_schema_migrations.py
index 6ef489d620..31eb32d440 100644
--- a/tests/database/test_schema_migrations.py
+++ b/tests/database/test_schema_migrations.py
@@ -206,13 +206,6 @@ class TestIndexes:
id_col = User.__table__.columns["id"]
assert id_col.primary_key is True
- def test_foreign_key_references(self):
- """Test foreign key relationships exist"""
- from local_deep_research.database.models.research import ResearchHistory
-
- # Check that research history model exists and is properly defined
- assert ResearchHistory.__tablename__ is not None
-
class TestTableNames:
"""Tests for table naming conventions"""
diff --git a/tests/database/test_session_passwords.py b/tests/database/test_session_passwords.py
index 51431d15d1..c524c18431 100644
--- a/tests/database/test_session_passwords.py
+++ b/tests/database/test_session_passwords.py
@@ -174,14 +174,6 @@ class TestSessionPasswordStore:
class TestSessionPasswordStoreGlobalInstance:
"""Tests for the global session_password_store instance."""
- def test_global_instance_exists(self):
- """Global session_password_store instance exists."""
- from local_deep_research.database.session_passwords import (
- session_password_store,
- )
-
- assert session_password_store is not None
-
def test_global_instance_is_session_password_store(self):
"""Global instance is SessionPasswordStore type."""
from local_deep_research.database.session_passwords import (
diff --git a/tests/database/test_temp_auth.py b/tests/database/test_temp_auth.py
index 7c56d50e17..5d561a529f 100644
--- a/tests/database/test_temp_auth.py
+++ b/tests/database/test_temp_auth.py
@@ -185,12 +185,6 @@ class TestTemporaryAuthStore:
class TestTemporaryAuthStoreGlobalInstance:
"""Tests for the global temp_auth_store instance."""
- def test_global_instance_exists(self):
- """Global temp_auth_store instance exists."""
- from local_deep_research.database.temp_auth import temp_auth_store
-
- assert temp_auth_store is not None
-
def test_global_instance_is_temporary_auth_store(self):
"""Global instance is TemporaryAuthStore type."""
from local_deep_research.database.temp_auth import (
diff --git a/tests/database/test_thread_local_session.py b/tests/database/test_thread_local_session.py
index 62da557581..4003daeca0 100644
--- a/tests/database/test_thread_local_session.py
+++ b/tests/database/test_thread_local_session.py
@@ -423,14 +423,6 @@ class TestModuleFunctions:
class TestGlobalInstance:
"""Tests for the global thread_session_manager instance."""
- def test_global_instance_exists(self):
- """Test that global thread_session_manager instance exists."""
- from local_deep_research.database.thread_local_session import (
- thread_session_manager,
- )
-
- assert thread_session_manager is not None
-
def test_global_instance_is_correct_type(self):
"""Test that global instance is ThreadLocalSessionManager."""
from local_deep_research.database.thread_local_session import (
diff --git a/tests/database/test_thread_metrics.py b/tests/database/test_thread_metrics.py
index 44985f0a0b..69824981b1 100644
--- a/tests/database/test_thread_metrics.py
+++ b/tests/database/test_thread_metrics.py
@@ -216,12 +216,6 @@ class TestWriteTokenMetrics:
class TestGlobalInstance:
"""Tests for the global metrics_writer instance."""
- def test_global_instance_exists(self):
- """Test that global metrics_writer instance exists."""
- from local_deep_research.database.thread_metrics import metrics_writer
-
- assert metrics_writer is not None
-
def test_global_instance_is_correct_type(self):
"""Test that global instance is ThreadSafeMetricsWriter."""
from local_deep_research.database.thread_metrics import (
diff --git a/tests/domain_classifier/test_domain_classifier.py b/tests/domain_classifier/test_domain_classifier.py
index f30b7340b0..e111661c2a 100644
--- a/tests/domain_classifier/test_domain_classifier.py
+++ b/tests/domain_classifier/test_domain_classifier.py
@@ -298,18 +298,6 @@ class TestDomainClassifierClassify:
assert result is None
-class TestDomainClassificationModel:
- """Tests for DomainClassification model."""
-
- def test_domain_classification_model_exists(self):
- """Test that DomainClassification model exists."""
- from local_deep_research.domain_classifier.models import (
- DomainClassification,
- )
-
- assert DomainClassification is not None
-
-
class TestClassifyAllDomains:
"""Tests for batch/all-domain classification functionality."""
diff --git a/tests/domain_classifier/test_lazy_imports.py b/tests/domain_classifier/test_lazy_imports.py
index b945fe39c4..657e4fa4fb 100644
--- a/tests/domain_classifier/test_lazy_imports.py
+++ b/tests/domain_classifier/test_lazy_imports.py
@@ -4,16 +4,6 @@ import pytest
class TestDomainClassifierLazyImports:
- def test_import_domain_classifier(self):
- from local_deep_research.domain_classifier import DomainClassifier
-
- assert DomainClassifier is not None
-
- def test_import_domain_classification(self):
- from local_deep_research.domain_classifier import DomainClassification
-
- assert DomainClassification is not None
-
def test_invalid_attribute_raises(self):
with pytest.raises(AttributeError, match="has no attribute"):
from local_deep_research import domain_classifier
diff --git a/tests/embeddings/test_embeddings_config_behavior.py b/tests/embeddings/test_embeddings_config_behavior.py
index 38a628a717..ee06369aef 100644
--- a/tests/embeddings/test_embeddings_config_behavior.py
+++ b/tests/embeddings/test_embeddings_config_behavior.py
@@ -10,14 +10,6 @@ import pytest
class TestValidEmbeddingProviders:
"""Tests for VALID_EMBEDDING_PROVIDERS constant."""
- def test_constant_exists(self):
- """VALID_EMBEDDING_PROVIDERS constant exists."""
- from local_deep_research.embeddings.embeddings_config import (
- VALID_EMBEDDING_PROVIDERS,
- )
-
- assert VALID_EMBEDDING_PROVIDERS is not None
-
def test_is_list(self):
"""VALID_EMBEDDING_PROVIDERS is a list."""
from local_deep_research.embeddings.embeddings_config import (
diff --git a/tests/llm/providers/test_auto_discovery.py b/tests/llm/providers/test_auto_discovery.py
index c20c85b668..05d5b91be4 100644
--- a/tests/llm/providers/test_auto_discovery.py
+++ b/tests/llm/providers/test_auto_discovery.py
@@ -239,14 +239,6 @@ class TestModuleFunctions:
class TestGlobalInstance:
"""Tests for global provider_discovery instance."""
- def test_global_instance_exists(self):
- """Global provider_discovery instance exists."""
- from local_deep_research.llm.providers.auto_discovery import (
- provider_discovery,
- )
-
- assert provider_discovery is not None
-
def test_global_instance_is_provider_discovery(self):
"""Global instance is ProviderDiscovery type."""
from local_deep_research.llm.providers.auto_discovery import (
diff --git a/tests/mcp/test_mcp_protocol.py b/tests/mcp/test_mcp_protocol.py
index d591bf0bbb..6de271d30f 100644
--- a/tests/mcp/test_mcp_protocol.py
+++ b/tests/mcp/test_mcp_protocol.py
@@ -126,13 +126,6 @@ class TestMCPToolRegistration:
class TestMCPLogging:
"""Tests for MCP logging configuration (critical for STDIO)."""
- def test_logger_is_configured(self):
- """Verify loguru logger is configured."""
- from loguru import logger
-
- # Logger should exist and have handlers
- assert logger is not None
-
def test_no_stdout_pollution_from_list_strategies(self):
"""Verify list_strategies doesn't write to stdout."""
from local_deep_research.mcp.server import list_strategies
diff --git a/tests/mcp/test_mcp_strategy.py b/tests/mcp/test_mcp_strategy.py
index c228e6a9c7..592a92f823 100644
--- a/tests/mcp/test_mcp_strategy.py
+++ b/tests/mcp/test_mcp_strategy.py
@@ -735,14 +735,6 @@ class TestMCPToolDiscovery:
class TestStrategyExport:
"""Tests for strategy export and import."""
- def test_strategy_exported_from_package(self):
- """Test MCPSearchStrategy is exported from strategies package."""
- from local_deep_research.advanced_search_system.strategies import (
- MCPSearchStrategy,
- )
-
- assert MCPSearchStrategy is not None
-
def test_strategy_registered_in_factory(self):
"""Test strategy is registered in search_system_factory."""
from local_deep_research.search_system_factory import create_strategy
diff --git a/tests/news/core/test_search_integration.py b/tests/news/core/test_search_integration.py
index 3fb6287059..01c7f4788f 100644
--- a/tests/news/core/test_search_integration.py
+++ b/tests/news/core/test_search_integration.py
@@ -405,23 +405,3 @@ class TestCreateSearchWrapper:
result = wrapped(mock_self, "test query")
assert result == {"findings": []}
-
-
-class TestModuleImports:
- """Tests for module imports."""
-
- def test_news_search_callback_importable(self):
- """Test NewsSearchCallback can be imported."""
- from local_deep_research.news.core.search_integration import (
- NewsSearchCallback,
- )
-
- assert NewsSearchCallback is not None
-
- def test_create_search_wrapper_importable(self):
- """Test create_search_wrapper can be imported."""
- from local_deep_research.news.core.search_integration import (
- create_search_wrapper,
- )
-
- assert create_search_wrapper is not None
diff --git a/tests/news/test_api_functions_extended.py b/tests/news/test_api_functions_extended.py
index 6f1088a2e4..9b3f6b0238 100644
--- a/tests/news/test_api_functions_extended.py
+++ b/tests/news/test_api_functions_extended.py
@@ -32,74 +32,6 @@ class TestNotifyScheduler:
pass # May fail if no scheduler, but shouldn't raise unexpected errors
-class TestAPIExceptionClasses:
- """Tests for API exception classes."""
-
- def test_invalid_limit_exception_exists(self):
- """InvalidLimitException is importable."""
- from local_deep_research.news.exceptions import InvalidLimitException
-
- assert InvalidLimitException is not None
-
- def test_subscription_not_found_exception_exists(self):
- """SubscriptionNotFoundException is importable."""
- from local_deep_research.news.exceptions import (
- SubscriptionNotFoundException,
- )
-
- assert SubscriptionNotFoundException is not None
-
- def test_subscription_creation_exception_exists(self):
- """SubscriptionCreationException is importable."""
- from local_deep_research.news.exceptions import (
- SubscriptionCreationException,
- )
-
- assert SubscriptionCreationException is not None
-
- def test_subscription_update_exception_exists(self):
- """SubscriptionUpdateException is importable."""
- from local_deep_research.news.exceptions import (
- SubscriptionUpdateException,
- )
-
- assert SubscriptionUpdateException is not None
-
- def test_subscription_deletion_exception_exists(self):
- """SubscriptionDeletionException is importable."""
- from local_deep_research.news.exceptions import (
- SubscriptionDeletionException,
- )
-
- assert SubscriptionDeletionException is not None
-
- def test_database_access_exception_exists(self):
- """DatabaseAccessException is importable."""
- from local_deep_research.news.exceptions import DatabaseAccessException
-
- assert DatabaseAccessException is not None
-
- def test_news_feed_generation_exception_exists(self):
- """NewsFeedGenerationException is importable."""
- from local_deep_research.news.exceptions import (
- NewsFeedGenerationException,
- )
-
- assert NewsFeedGenerationException is not None
-
- def test_not_implemented_exception_exists(self):
- """NotImplementedException is importable."""
- from local_deep_research.news.exceptions import NotImplementedException
-
- assert NotImplementedException is not None
-
- def test_news_api_exception_exists(self):
- """NewsAPIException is importable."""
- from local_deep_research.news.exceptions import NewsAPIException
-
- assert NewsAPIException is not None
-
-
class TestAPIFunctionSignatures:
"""Tests for API function signatures."""
@@ -140,24 +72,6 @@ class TestAPIFunctionSignatures:
assert callable(delete_subscription)
-class TestAPIModuleImports:
- """Tests for API module imports."""
-
- def test_api_module_importable(self):
- """API module is importable."""
- from local_deep_research.news import api
-
- assert api is not None
-
- def test_recommender_class_importable(self):
- """TopicBasedRecommender is importable through api module."""
- from local_deep_research.news.recommender.topic_based import (
- TopicBasedRecommender,
- )
-
- assert TopicBasedRecommender is not None
-
-
class TestExceptionInheritance:
"""Tests for exception inheritance."""
diff --git a/tests/news/test_api_module_extended.py b/tests/news/test_api_module_extended.py
index 3318c990e1..4084c025d5 100644
--- a/tests/news/test_api_module_extended.py
+++ b/tests/news/test_api_module_extended.py
@@ -276,31 +276,3 @@ class TestGetNewsFeed:
with pytest.raises(InvalidLimitException):
get_news_feed(limit=-10)
-
-
-class TestApiModuleImports:
- """Tests for module-level imports."""
-
- def test_imports_invalid_limit_exception(self):
- """Test InvalidLimitException is importable."""
- from local_deep_research.news.api import InvalidLimitException
-
- assert InvalidLimitException is not None
-
- def test_imports_subscription_not_found_exception(self):
- """Test SubscriptionNotFoundException is importable."""
- from local_deep_research.news.api import SubscriptionNotFoundException
-
- assert SubscriptionNotFoundException is not None
-
- def test_imports_not_implemented_exception(self):
- """Test NotImplementedException is importable."""
- from local_deep_research.news.api import NotImplementedException
-
- assert NotImplementedException is not None
-
- def test_imports_database_access_exception(self):
- """Test DatabaseAccessException is importable."""
- from local_deep_research.news.api import DatabaseAccessException
-
- assert DatabaseAccessException is not None
diff --git a/tests/news/test_base_preference_comprehensive.py b/tests/news/test_base_preference_comprehensive.py
index 4efabf1870..8b1f319c0c 100644
--- a/tests/news/test_base_preference_comprehensive.py
+++ b/tests/news/test_base_preference_comprehensive.py
@@ -726,23 +726,3 @@ class TestBasePreferenceAbstract:
with pytest.raises(TypeError):
BasePreferenceManager()
-
-
-class TestBasePreferenceImports:
- """Tests for module imports."""
-
- def test_imports_base_preference_manager(self):
- """Test BasePreferenceManager can be imported."""
- from local_deep_research.news.preference_manager.base_preference import (
- BasePreferenceManager,
- )
-
- assert BasePreferenceManager is not None
-
- def test_imports_topic_registry(self):
- """Test TopicRegistry can be imported."""
- from local_deep_research.news.preference_manager.base_preference import (
- TopicRegistry,
- )
-
- assert TopicRegistry is not None
diff --git a/tests/news/test_base_rater_comprehensive.py b/tests/news/test_base_rater_comprehensive.py
index eb355b4e7f..44fa5f593e 100644
--- a/tests/news/test_base_rater_comprehensive.py
+++ b/tests/news/test_base_rater_comprehensive.py
@@ -556,47 +556,3 @@ class TestRatingSystemAbstract:
with pytest.raises(TypeError):
BaseRatingSystem()
-
-
-class TestRatingSystemImports:
- """Tests for module imports."""
-
- def test_imports_base_rating_system(self):
- """Test BaseRatingSystem can be imported."""
- from local_deep_research.news.rating_system.base_rater import (
- BaseRatingSystem,
- )
-
- assert BaseRatingSystem is not None
-
- def test_imports_quality_rating_system(self):
- """Test QualityRatingSystem can be imported."""
- from local_deep_research.news.rating_system.base_rater import (
- QualityRatingSystem,
- )
-
- assert QualityRatingSystem is not None
-
- def test_imports_relevance_rating_system(self):
- """Test RelevanceRatingSystem can be imported."""
- from local_deep_research.news.rating_system.base_rater import (
- RelevanceRatingSystem,
- )
-
- assert RelevanceRatingSystem is not None
-
- def test_imports_quality_rating_enum(self):
- """Test QualityRating enum can be imported."""
- from local_deep_research.news.rating_system.base_rater import (
- QualityRating,
- )
-
- assert QualityRating is not None
-
- def test_imports_relevance_rating_enum(self):
- """Test RelevanceRating enum can be imported."""
- from local_deep_research.news.rating_system.base_rater import (
- RelevanceRating,
- )
-
- assert RelevanceRating is not None
diff --git a/tests/news/test_card_factory.py b/tests/news/test_card_factory.py
index aa7c03f931..7c9e6dacdb 100644
--- a/tests/news/test_card_factory.py
+++ b/tests/news/test_card_factory.py
@@ -744,12 +744,6 @@ class TestModuleLevelConvenienceFunctions:
class TestModuleImports:
"""Tests for module imports."""
- def test_card_factory_importable(self):
- """Test CardFactory can be imported."""
- from local_deep_research.news.core.card_factory import CardFactory
-
- assert CardFactory is not None
-
def test_convenience_functions_importable(self):
"""Test convenience functions can be imported."""
from local_deep_research.news.core.card_factory import (
diff --git a/tests/news/test_card_factory_comprehensive.py b/tests/news/test_card_factory_comprehensive.py
index 8d516559d4..e3424d57a4 100644
--- a/tests/news/test_card_factory_comprehensive.py
+++ b/tests/news/test_card_factory_comprehensive.py
@@ -321,12 +321,6 @@ class TestCardFactoryEdgeCases:
class TestCardFactoryImports:
"""Tests for module imports."""
- def test_imports_card_factory(self):
- """Test CardFactory can be imported."""
- from local_deep_research.news.core.card_factory import CardFactory
-
- assert CardFactory is not None
-
def test_card_factory_is_class(self):
"""Test CardFactory is a class."""
from local_deep_research.news.core.card_factory import CardFactory
diff --git a/tests/news/test_card_storage_comprehensive.py b/tests/news/test_card_storage_comprehensive.py
index 5d2ce09969..9e1f5a8702 100644
--- a/tests/news/test_card_storage_comprehensive.py
+++ b/tests/news/test_card_storage_comprehensive.py
@@ -276,12 +276,6 @@ class TestSQLCardStorageInheritance:
class TestSQLCardStorageImports:
"""Tests for module imports."""
- def test_imports_sql_card_storage(self):
- """Test SQLCardStorage can be imported."""
- from local_deep_research.news.core.card_storage import SQLCardStorage
-
- assert SQLCardStorage is not None
-
def test_is_class(self):
"""Test SQLCardStorage is a class."""
from local_deep_research.news.core.card_storage import SQLCardStorage
diff --git a/tests/news/test_core_storage_interfaces_comprehensive.py b/tests/news/test_core_storage_interfaces_comprehensive.py
index cee01d3424..68b9eaa8fa 100644
--- a/tests/news/test_core_storage_interfaces_comprehensive.py
+++ b/tests/news/test_core_storage_interfaces_comprehensive.py
@@ -449,37 +449,3 @@ class TestConcreteBaseStorageImplementation:
result = storage.get(id)
assert result == test_data
-
-
-class TestStorageImports:
- """Tests for module imports."""
-
- def test_imports_base_storage(self):
- """Test BaseStorage can be imported."""
- from local_deep_research.news.core.storage import BaseStorage
-
- assert BaseStorage is not None
-
- def test_imports_card_storage(self):
- """Test CardStorage can be imported."""
- from local_deep_research.news.core.storage import CardStorage
-
- assert CardStorage is not None
-
- def test_imports_subscription_storage(self):
- """Test SubscriptionStorage can be imported."""
- from local_deep_research.news.core.storage import SubscriptionStorage
-
- assert SubscriptionStorage is not None
-
- def test_imports_rating_storage(self):
- """Test RatingStorage can be imported."""
- from local_deep_research.news.core.storage import RatingStorage
-
- assert RatingStorage is not None
-
- def test_imports_preference_storage(self):
- """Test PreferenceStorage can be imported."""
- from local_deep_research.news.core.storage import PreferenceStorage
-
- assert PreferenceStorage is not None
diff --git a/tests/news/test_core_utils_comprehensive.py b/tests/news/test_core_utils_comprehensive.py
index 33800f34d9..3a4e30d7d9 100644
--- a/tests/news/test_core_utils_comprehensive.py
+++ b/tests/news/test_core_utils_comprehensive.py
@@ -138,12 +138,6 @@ class TestDateTimeHelpers:
class TestUtilsImports:
"""Tests for module imports."""
- def test_imports_utc_now(self):
- """Test utc_now can be imported."""
- from local_deep_research.news.core.utils import utc_now
-
- assert utc_now is not None
-
def test_utc_now_is_callable(self):
"""Test utc_now is callable."""
from local_deep_research.news.core.utils import utc_now
diff --git a/tests/news/test_flask_api_extended.py b/tests/news/test_flask_api_extended.py
index 79e1212325..aea4ac985a 100644
--- a/tests/news/test_flask_api_extended.py
+++ b/tests/news/test_flask_api_extended.py
@@ -134,12 +134,6 @@ class TestGetUserId:
class TestNewsBlueprintExists:
"""Tests for news_api_bp Blueprint."""
- def test_blueprint_is_defined(self):
- """Blueprint news_api_bp is defined."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
def test_blueprint_name(self):
"""Blueprint name is 'news_api'."""
from local_deep_research.news.flask_api import news_api_bp
@@ -163,76 +157,6 @@ class TestFeedRouteValidation:
assert callable(get_news_feed)
-class TestSubscriptionRouteValidation:
- """Tests for subscription routes."""
-
- def test_subscribe_route_exists(self):
- """Route /api/subscribe exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
- def test_subscriptions_current_route_exists(self):
- """Route /api/subscriptions/current exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
-
-class TestVoteRouteValidation:
- """Tests for vote/feedback routes."""
-
- def test_vote_route_exists(self):
- """Route /api/vote exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
- def test_feedback_batch_route_exists(self):
- """Route /api/feedback/batch exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
-
-class TestSchedulerRoutes:
- """Tests for scheduler management routes."""
-
- def test_scheduler_status_route_exists(self):
- """Route /api/scheduler/status exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
- def test_scheduler_start_route_exists(self):
- """Route /api/scheduler/start exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
- def test_scheduler_stop_route_exists(self):
- """Route /api/scheduler/stop exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
-
-class TestFolderRoutes:
- """Tests for folder management routes."""
-
- def test_get_folders_route_exists(self):
- """Route /api/subscription/folders exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
- def test_create_folder_route_exists(self):
- """POST /api/subscription/folders exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
-
class TestErrorHandlers:
"""Tests for error handler functions."""
@@ -298,158 +222,6 @@ class TestErrorHandlers:
assert "error" in result[0].get_json()
-class TestSearchHistoryRoutes:
- """Tests for search history routes."""
-
- def test_get_search_history_route_exists(self):
- """GET /api/search-history exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
- def test_add_search_history_route_exists(self):
- """POST /api/search-history exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
- def test_clear_search_history_route_exists(self):
- """DELETE /api/search-history exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
-
-class TestPreferencesRoute:
- """Tests for preferences route."""
-
- def test_preferences_route_exists(self):
- """POST /api/preferences exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
-
-class TestCategoriesRoute:
- """Tests for categories route."""
-
- def test_categories_route_exists(self):
- """GET /api/categories exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
-
-class TestResearchRoute:
- """Tests for research route."""
-
- def test_research_route_exists(self):
- """POST /api/research/<card_id> exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
-
-class TestSubscriptionManagement:
- """Tests for subscription CRUD routes."""
-
- def test_get_subscription_route_exists(self):
- """GET /api/subscriptions/<id> exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
- def test_update_subscription_route_exists(self):
- """PUT /api/subscriptions/<id> exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
- def test_delete_subscription_route_exists(self):
- """DELETE /api/subscriptions/<id> exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
- def test_run_subscription_route_exists(self):
- """POST /api/subscriptions/<id>/run exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
- def test_history_route_exists(self):
- """GET /api/subscriptions/<id>/history exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
-
-class TestOverdueSubscriptions:
- """Tests for overdue subscription checking."""
-
- def test_check_overdue_route_exists(self):
- """POST /api/check-overdue exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
-
-class TestSubscriptionStats:
- """Tests for subscription stats route."""
-
- def test_stats_route_exists(self):
- """GET /api/subscription/stats exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
-
-class TestOrganizedSubscriptions:
- """Tests for organized subscriptions route."""
-
- def test_organized_route_exists(self):
- """GET /api/subscription/subscriptions/organized exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
-
-class TestSchedulerStats:
- """Tests for scheduler stats route."""
-
- def test_scheduler_stats_route_exists(self):
- """GET /api/scheduler/stats exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
- def test_scheduler_users_route_exists(self):
- """GET /api/scheduler/users exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
-
-class TestCleanupRoute:
- """Tests for cleanup trigger route."""
-
- def test_cleanup_route_exists(self):
- """POST /api/scheduler/cleanup-now exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
-
-class TestCheckNowRoute:
- """Tests for check-now route."""
-
- def test_check_now_route_exists(self):
- """POST /api/scheduler/check-now exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
-
class TestSafeErrorMessageExtended:
"""Extended tests for safe_error_message() helper."""
@@ -520,12 +292,6 @@ class TestBlueprintConfiguration:
assert isinstance(news_api_bp, Blueprint)
- def test_blueprint_import_name(self):
- """Blueprint has correct import_name."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp.import_name is not None
-
class TestErrorHandlerMessages:
"""Tests for error handler message content."""
diff --git a/tests/news/test_flask_api_helpers.py b/tests/news/test_flask_api_helpers.py
index 7ee406e7dc..65c54ecb1e 100644
--- a/tests/news/test_flask_api_helpers.py
+++ b/tests/news/test_flask_api_helpers.py
@@ -91,12 +91,6 @@ class TestGetUserId:
class TestBlueprintConfiguration:
"""Tests for Flask API blueprint configuration."""
- def test_blueprint_exists(self):
- """Test news_api_bp blueprint exists."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
-
def test_blueprint_has_correct_name(self):
"""Test blueprint has correct name."""
from local_deep_research.news.flask_api import news_api_bp
diff --git a/tests/news/test_preference_storage_comprehensive.py b/tests/news/test_preference_storage_comprehensive.py
index fd679bd354..b49f405496 100644
--- a/tests/news/test_preference_storage_comprehensive.py
+++ b/tests/news/test_preference_storage_comprehensive.py
@@ -311,14 +311,6 @@ class TestSQLPreferenceStorageInheritance:
class TestSQLPreferenceStorageImports:
"""Tests for module imports."""
- def test_imports_sql_preference_storage(self):
- """Test SQLPreferenceStorage can be imported."""
- from local_deep_research.news.preference_manager.storage import (
- SQLPreferenceStorage,
- )
-
- assert SQLPreferenceStorage is not None
-
def test_is_class(self):
"""Test SQLPreferenceStorage is a class."""
from local_deep_research.news.preference_manager.storage import (
diff --git a/tests/news/test_rating_storage_comprehensive.py b/tests/news/test_rating_storage_comprehensive.py
index 521922c025..661d9bb315 100644
--- a/tests/news/test_rating_storage_comprehensive.py
+++ b/tests/news/test_rating_storage_comprehensive.py
@@ -269,14 +269,6 @@ class TestSQLRatingStorageInheritance:
class TestSQLRatingStorageImports:
"""Tests for module imports."""
- def test_imports_sql_rating_storage(self):
- """Test SQLRatingStorage can be imported."""
- from local_deep_research.news.rating_system.storage import (
- SQLRatingStorage,
- )
-
- assert SQLRatingStorage is not None
-
def test_is_class(self):
"""Test SQLRatingStorage is a class."""
from local_deep_research.news.rating_system.storage import (
diff --git a/tests/news/test_scheduler_extended.py b/tests/news/test_scheduler_extended.py
index b0bce8112f..b58ba48b7c 100644
--- a/tests/news/test_scheduler_extended.py
+++ b/tests/news/test_scheduler_extended.py
@@ -739,14 +739,6 @@ class TestInvalidateAllSettingsCache:
class TestDocumentSchedulerSettingsDataclass:
"""Tests for DocumentSchedulerSettings dataclass."""
- def test_dataclass_exists(self):
- """DocumentSchedulerSettings dataclass exists."""
- from local_deep_research.scheduler.background import (
- DocumentSchedulerSettings,
- )
-
- assert DocumentSchedulerSettings is not None
-
def test_default_enabled_is_true(self):
"""Default enabled is True."""
from local_deep_research.scheduler.background import (
diff --git a/tests/news/test_search_integration.py b/tests/news/test_search_integration.py
index 9feb8023a7..7d6427a326 100644
--- a/tests/news/test_search_integration.py
+++ b/tests/news/test_search_integration.py
@@ -465,14 +465,6 @@ class TestSearchIntegrationEdgeCases:
class TestSearchIntegrationImports:
"""Tests for module imports."""
- def test_imports_news_search_callback(self):
- """Test NewsSearchCallback can be imported."""
- from local_deep_research.news.core.search_integration import (
- NewsSearchCallback,
- )
-
- assert NewsSearchCallback is not None
-
def test_imports_create_search_wrapper(self):
"""Test create_search_wrapper can be imported."""
from local_deep_research.news.core.search_integration import (
diff --git a/tests/news/test_search_integration_comprehensive.py b/tests/news/test_search_integration_comprehensive.py
index 21e470dc15..c4e8b1cfcf 100644
--- a/tests/news/test_search_integration_comprehensive.py
+++ b/tests/news/test_search_integration_comprehensive.py
@@ -393,14 +393,6 @@ class TestSearchWrapperContext:
class TestSearchIntegrationImports:
"""Tests for module imports."""
- def test_imports_news_search_callback(self):
- """Test NewsSearchCallback can be imported."""
- from local_deep_research.news.core.search_integration import (
- NewsSearchCallback,
- )
-
- assert NewsSearchCallback is not None
-
def test_imports_create_search_wrapper(self):
"""Test create_search_wrapper can be imported."""
from local_deep_research.news.core.search_integration import (
diff --git a/tests/news/test_storage_core_extended.py b/tests/news/test_storage_core_extended.py
index b4a8476291..fa695ed04b 100644
--- a/tests/news/test_storage_core_extended.py
+++ b/tests/news/test_storage_core_extended.py
@@ -212,12 +212,6 @@ class TestStorageInterfaceEdgeCases:
class TestCardStorageInterface:
"""Tests for CardStorage interface."""
- def test_card_storage_exists(self):
- """Test CardStorage class exists."""
- from local_deep_research.news.core.storage import CardStorage
-
- assert CardStorage is not None
-
def test_card_storage_is_abstract(self):
"""Test CardStorage is abstract."""
from local_deep_research.news.core.storage import CardStorage
@@ -241,12 +235,6 @@ class TestCardStorageInterface:
class TestSubscriptionStorageInterface:
"""Tests for SubscriptionStorage interface."""
- def test_subscription_storage_exists(self):
- """Test SubscriptionStorage class exists."""
- from local_deep_research.news.core.storage import SubscriptionStorage
-
- assert SubscriptionStorage is not None
-
def test_subscription_storage_is_abstract(self):
"""Test SubscriptionStorage is abstract."""
from local_deep_research.news.core.storage import SubscriptionStorage
@@ -270,12 +258,6 @@ class TestSubscriptionStorageInterface:
class TestRatingStorageInterface:
"""Tests for RatingStorage interface."""
- def test_rating_storage_exists(self):
- """Test RatingStorage class exists."""
- from local_deep_research.news.core.storage import RatingStorage
-
- assert RatingStorage is not None
-
def test_rating_storage_is_abstract(self):
"""Test RatingStorage is abstract."""
from local_deep_research.news.core.storage import RatingStorage
@@ -299,12 +281,6 @@ class TestRatingStorageInterface:
class TestPreferenceStorageInterface:
"""Tests for PreferenceStorage interface."""
- def test_preference_storage_exists(self):
- """Test PreferenceStorage class exists."""
- from local_deep_research.news.core.storage import PreferenceStorage
-
- assert PreferenceStorage is not None
-
def test_preference_storage_is_abstract(self):
"""Test PreferenceStorage is abstract."""
from local_deep_research.news.core.storage import PreferenceStorage
diff --git a/tests/news/test_subscription_storage_comprehensive.py b/tests/news/test_subscription_storage_comprehensive.py
index 575a93d166..d56999a07d 100644
--- a/tests/news/test_subscription_storage_comprehensive.py
+++ b/tests/news/test_subscription_storage_comprehensive.py
@@ -290,14 +290,6 @@ class TestSQLSubscriptionStorageInheritance:
class TestSQLSubscriptionStorageImports:
"""Tests for module imports."""
- def test_imports_sql_subscription_storage(self):
- """Test SQLSubscriptionStorage can be imported."""
- from local_deep_research.news.subscription_manager.storage import (
- SQLSubscriptionStorage,
- )
-
- assert SQLSubscriptionStorage is not None
-
def test_is_class(self):
"""Test SQLSubscriptionStorage is a class."""
from local_deep_research.news.subscription_manager.storage import (
diff --git a/tests/news/test_topic_based_recommender_comprehensive.py b/tests/news/test_topic_based_recommender_comprehensive.py
index 7744222371..7120faf692 100644
--- a/tests/news/test_topic_based_recommender_comprehensive.py
+++ b/tests/news/test_topic_based_recommender_comprehensive.py
@@ -439,14 +439,6 @@ class TestTopicBasedRecommenderEdgeCases:
class TestTopicBasedRecommenderImports:
"""Tests for module imports."""
- def test_imports_topic_based_recommender(self):
- """Test TopicBasedRecommender can be imported."""
- from local_deep_research.news.recommender.topic_based import (
- TopicBasedRecommender,
- )
-
- assert TopicBasedRecommender is not None
-
def test_is_class(self):
"""Test TopicBasedRecommender is a class."""
from local_deep_research.news.recommender.topic_based import (
diff --git a/tests/news/test_web_blueprint_extended.py b/tests/news/test_web_blueprint_extended.py
index 0ab0728d9f..efdd361cd3 100644
--- a/tests/news/test_web_blueprint_extended.py
+++ b/tests/news/test_web_blueprint_extended.py
@@ -135,35 +135,3 @@ class TestBlueprintConfiguration:
# Both should be valid blueprints
assert bp1 is not None
assert bp2 is not None
-
-
-class TestWebModuleImports:
- """Tests for web module imports."""
-
- def test_web_module_importable(self):
- """Web module is importable."""
- from local_deep_research.news import web
-
- assert web is not None
-
- def test_api_import_in_web(self):
- """api module is imported in web module."""
- from local_deep_research.news.web import api
-
- assert api is not None
-
-
-class TestFlaskApiBlueprint:
- """Tests for flask_api blueprint integration."""
-
- def test_flask_api_module_exists(self):
- """flask_api module exists."""
- from local_deep_research.news import flask_api
-
- assert flask_api is not None
-
- def test_news_api_bp_exists(self):
- """news_api_bp exists in flask_api."""
- from local_deep_research.news.flask_api import news_api_bp
-
- assert news_api_bp is not None
diff --git a/tests/research_scheduler/test_scheduler_edge_cases.py b/tests/research_scheduler/test_scheduler_edge_cases.py
index 5f457e7063..44fb14d2ad 100644
--- a/tests/research_scheduler/test_scheduler_edge_cases.py
+++ b/tests/research_scheduler/test_scheduler_edge_cases.py
@@ -8,12 +8,6 @@ Covers:
class TestSchedulerRouteBlueprint:
"""Test research_scheduler route blueprint."""
- def test_blueprint_importable(self):
- """Scheduler blueprint is importable."""
- from local_deep_research.research_scheduler.routes import scheduler_bp
-
- assert scheduler_bp is not None
-
def test_blueprint_name(self):
"""Blueprint has the expected name."""
from local_deep_research.research_scheduler.routes import scheduler_bp
diff --git a/tests/search_engines/test_rate_limiting.py b/tests/search_engines/test_rate_limiting.py
index 86c58b25b7..c7153f27e3 100644
--- a/tests/search_engines/test_rate_limiting.py
+++ b/tests/search_engines/test_rate_limiting.py
@@ -12,14 +12,6 @@ import pytest
class TestRateLimitError:
"""Tests for RateLimitError exception."""
- def test_rate_limit_error_exists(self):
- """Test RateLimitError can be imported."""
- from local_deep_research.web_search_engines.rate_limiting import (
- RateLimitError,
- )
-
- assert RateLimitError is not None
-
def test_rate_limit_error_is_exception(self):
"""Test RateLimitError is an exception class."""
from local_deep_research.web_search_engines.rate_limiting import (
@@ -60,23 +52,3 @@ class TestModuleExports:
assert get_tracker is not None
assert callable(get_tracker)
-
-
-class TestRateLimitExceptions:
- """Tests for rate limiting exceptions module."""
-
- def test_exceptions_module_exists(self):
- """Test exceptions module can be imported."""
- from local_deep_research.web_search_engines.rate_limiting import (
- exceptions,
- )
-
- assert exceptions is not None
-
- def test_rate_limit_error_in_exceptions(self):
- """Test RateLimitError is in exceptions module."""
- from local_deep_research.web_search_engines.rate_limiting.exceptions import (
- RateLimitError,
- )
-
- assert RateLimitError is not None
diff --git a/tests/security/test_rate_limiter.py b/tests/security/test_rate_limiter.py
index a4c7c0a243..c7fc11a8c3 100644
--- a/tests/security/test_rate_limiter.py
+++ b/tests/security/test_rate_limiter.py
@@ -137,20 +137,6 @@ class TestRateLimiterConfiguration:
assert limiter._headers_enabled is True
- def test_login_limit_exists(self):
- """Test that login_limit is defined."""
- from local_deep_research.security.rate_limiter import login_limit
-
- assert login_limit is not None
-
- def test_registration_limit_exists(self):
- """Test that registration_limit is defined."""
- from local_deep_research.security.rate_limiter import (
- registration_limit,
- )
-
- assert registration_limit is not None
-
class TestRateLimitConstants:
"""Tests for rate limit configuration constants."""
@@ -196,12 +182,6 @@ class TestRateLimitConstants:
class TestSettingsLimit:
"""Tests for settings_limit shared rate limiter (PR #2021)."""
- def test_settings_limit_exists(self):
- """Test that settings_limit is defined."""
- from local_deep_research.security.rate_limiter import settings_limit
-
- assert settings_limit is not None
-
def test_settings_limit_is_shared_limit(self):
"""Test that settings_limit is a SharedLimitItem from flask-limiter."""
from local_deep_research.security.rate_limiter import settings_limit
@@ -235,12 +215,6 @@ class TestSettingsLimit:
class TestApiRateLimit:
"""Tests for api_rate_limit shared limiter."""
- def test_api_rate_limit_exists(self):
- """Test that api_rate_limit is defined."""
- from local_deep_research.security.rate_limiter import api_rate_limit
-
- assert api_rate_limit is not None
-
def test_api_rate_limit_is_callable(self):
"""Test that api_rate_limit can be used as a decorator."""
from local_deep_research.security.rate_limiter import api_rate_limit
diff --git a/tests/security/test_rate_limiter_deep_coverage.py b/tests/security/test_rate_limiter_deep_coverage.py
index 6e056c9b5b..cee1af1ac8 100644
--- a/tests/security/test_rate_limiter_deep_coverage.py
+++ b/tests/security/test_rate_limiter_deep_coverage.py
@@ -102,12 +102,6 @@ class TestGetUploadUserKey:
class TestModuleConstants:
- def test_limiter_instance_exists(self):
- """Module-level limiter instance is created."""
- from local_deep_research.security.rate_limiter import limiter
-
- assert limiter is not None
-
def test_shared_limits_exist(self):
"""Shared limit decorators are created."""
from local_deep_research.security.rate_limiter import (
diff --git a/tests/security/test_security_init_deep_coverage.py b/tests/security/test_security_init_deep_coverage.py
index 16cb5da995..49e24cb4a0 100644
--- a/tests/security/test_security_init_deep_coverage.py
+++ b/tests/security/test_security_init_deep_coverage.py
@@ -17,11 +17,6 @@ MODULE = "local_deep_research.security"
class TestRequiredImportsAlwaysPresent:
"""These symbols must always be importable regardless of optional deps."""
- def test_data_sanitizer_present(self):
- from local_deep_research.security import DataSanitizer
-
- assert DataSanitizer is not None
-
def test_sanitize_data_present(self):
from local_deep_research.security import sanitize_data
@@ -57,16 +52,6 @@ class TestRequiredImportsAlwaysPresent:
assert callable(is_ip_blocked)
- def test_password_validator_present(self):
- from local_deep_research.security import PasswordValidator
-
- assert PasswordValidator is not None
-
- def test_account_lockout_manager_present(self):
- from local_deep_research.security import AccountLockoutManager
-
- assert AccountLockoutManager is not None
-
def test_get_account_lockout_manager_present(self):
from local_deep_research.security import get_account_lockout_manager
@@ -97,21 +82,6 @@ class TestRequiredImportsAlwaysPresent:
assert isinstance(ALLOWED_MODULES, (set, frozenset, dict, list))
- def test_security_headers_present(self):
- from local_deep_research.security import SecurityHeaders
-
- assert SecurityHeaders is not None
-
- def test_url_validator_present(self):
- from local_deep_research.security import URLValidator
-
- assert URLValidator is not None
-
- def test_safe_session_present(self):
- from local_deep_research.security import SafeSession
-
- assert SafeSession is not None
-
def test_get_safe_url_present(self):
from local_deep_research.security import get_safe_url
@@ -127,11 +97,6 @@ class TestRequiredImportsAlwaysPresent:
assert callable(get_security_default)
- def test_notification_url_validator_present(self):
- from local_deep_research.security import NotificationURLValidator
-
- assert NotificationURLValidator is not None
-
def test_notification_url_validation_error_present(self):
from local_deep_research.security import NotificationURLValidationError
diff --git a/tests/settings/test_env_registry_behavior.py b/tests/settings/test_env_registry_behavior.py
index a8aaa6230e..0c6e4df8b5 100644
--- a/tests/settings/test_env_registry_behavior.py
+++ b/tests/settings/test_env_registry_behavior.py
@@ -14,12 +14,6 @@ import pytest
class TestRegistry:
"""Tests for the global registry instance."""
- def test_registry_exists(self):
- """Global registry exists."""
- from local_deep_research.settings.env_registry import registry
-
- assert registry is not None
-
def test_registry_is_settings_registry(self):
"""Registry is a SettingsRegistry instance."""
from local_deep_research.settings.env_registry import registry
diff --git a/tests/settings/test_settings_type_mapping.py b/tests/settings/test_settings_type_mapping.py
index 69a05786b2..f2573aca9a 100644
--- a/tests/settings/test_settings_type_mapping.py
+++ b/tests/settings/test_settings_type_mapping.py
@@ -58,12 +58,6 @@ class TestMappingReuse:
is UI_ELEMENT_TO_SETTING_TYPE
)
- def test_settings_manager_in_canonical_module(self):
- """SettingsManager lives in the same module as the canonical mapping."""
- from local_deep_research.settings.manager import SettingsManager
-
- assert SettingsManager is not None
-
class TestUnifiedSettingTypeEnum:
"""Verify that DB and web layers share one canonical SettingType (issue #2079)."""
diff --git a/tests/strategies/test_strategy_imports.py b/tests/strategies/test_strategy_imports.py
index aff95d86c6..c4f70c578f 100644
--- a/tests/strategies/test_strategy_imports.py
+++ b/tests/strategies/test_strategy_imports.py
@@ -151,20 +151,6 @@ class TestFactoryImports:
class TestSupportingModuleImports:
"""Test imports of supporting modules used by strategies."""
- def test_citation_handler_import(self):
- """Test CitationHandler import."""
- from local_deep_research.citation_handler import CitationHandler
-
- assert CitationHandler is not None
-
- def test_findings_repository_import(self):
- """Test FindingsRepository import."""
- from local_deep_research.advanced_search_system.findings.repository import (
- FindingsRepository,
- )
-
- assert FindingsRepository is not None
-
def test_question_generators_import(self):
"""Test question generator imports."""
from local_deep_research.advanced_search_system.questions.standard_question import (
@@ -176,19 +162,3 @@ class TestSupportingModuleImports:
assert StandardQuestionGenerator is not None
assert AtomicFactQuestionGenerator is not None
-
- def test_cross_engine_filter_import(self):
- """Test CrossEngineFilter import."""
- from local_deep_research.advanced_search_system.filters.cross_engine_filter import (
- CrossEngineFilter,
- )
-
- assert CrossEngineFilter is not None
-
- def test_search_utilities_import(self):
- """Test search utilities import."""
- from local_deep_research.utilities.search_utilities import (
- extract_links_from_search_results,
- )
-
- assert extract_links_from_search_results is not None
diff --git a/tests/utilities/test_db_utils.py b/tests/utilities/test_db_utils.py
index d6baaa9592..cfb9d74fab 100644
--- a/tests/utilities/test_db_utils.py
+++ b/tests/utilities/test_db_utils.py
@@ -247,16 +247,6 @@ class TestNoDbSettings:
assert my_function.__doc__ == "My docstring."
-class TestDataDir:
- """Tests for DATA_DIR constant."""
-
- def test_data_dir_is_set(self):
- """DATA_DIR should be set from get_data_directory."""
- from local_deep_research.utilities.db_utils import DATA_DIR
-
- assert DATA_DIR is not None
-
-
class TestThreadSafety:
"""Tests for thread safety mechanisms."""
diff --git a/tests/web/auth/test_queue_middleware_extended.py b/tests/web/auth/test_queue_middleware_extended.py
index 7e07cef3d0..bfb32499b2 100644
--- a/tests/web/auth/test_queue_middleware_extended.py
+++ b/tests/web/auth/test_queue_middleware_extended.py
@@ -9,12 +9,6 @@ Tests queue middleware request handling and processing.
class TestQueueMiddlewareV2Module:
"""Tests for queue middleware v2 module"""
- def test_module_importable(self):
- """Test queue middleware v2 can be imported"""
- from local_deep_research.web.auth import queue_middleware_v2
-
- assert queue_middleware_v2 is not None
-
def test_notify_function_exists(self):
"""Test notify_queue_processor function exists"""
from local_deep_research.web.auth.queue_middleware_v2 import (
@@ -27,12 +21,6 @@ class TestQueueMiddlewareV2Module:
class TestMiddlewareOptimizer:
"""Tests for middleware optimizer functions"""
- def test_optimizer_module_importable(self):
- """Test middleware optimizer can be imported"""
- from local_deep_research.web.auth import middleware_optimizer
-
- assert middleware_optimizer is not None
-
def test_should_skip_function_exists(self):
"""Test should_skip_queue_checks function exists"""
from local_deep_research.web.auth.middleware_optimizer import (
@@ -42,46 +30,6 @@ class TestMiddlewareOptimizer:
assert callable(should_skip_queue_checks)
-class TestQueueMiddlewareV1:
- """Tests for original queue middleware"""
-
- def test_queue_middleware_module_exists(self):
- """Test queue middleware module can be imported"""
- from local_deep_research.web.auth import queue_middleware
-
- assert queue_middleware is not None
-
-
-class TestCleanupMiddleware:
- """Tests for cleanup middleware"""
-
- def test_cleanup_middleware_module_exists(self):
- """Test cleanup middleware module can be imported"""
- from local_deep_research.web.auth import cleanup_middleware
-
- assert cleanup_middleware is not None
-
-
-class TestDatabaseMiddleware:
- """Tests for database middleware"""
-
- def test_database_middleware_module_exists(self):
- """Test database middleware module can be imported"""
- from local_deep_research.web.auth import database_middleware
-
- assert database_middleware is not None
-
-
-class TestSessionCleanup:
- """Tests for session cleanup"""
-
- def test_session_cleanup_module_exists(self):
- """Test session cleanup module can be imported"""
- from local_deep_research.web.auth import session_cleanup
-
- assert session_cleanup is not None
-
-
class TestMiddlewareIntegration:
"""Tests for middleware integration"""
diff --git a/tests/web/queue/test_queue_high_value.py b/tests/web/queue/test_queue_high_value.py
index 7cd38edf45..0c9c340ff8 100644
--- a/tests/web/queue/test_queue_high_value.py
+++ b/tests/web/queue/test_queue_high_value.py
@@ -54,12 +54,6 @@ class TestStorageFactorySessionValidation:
class TestQueueManagerBasics:
"""Test web/queue/manager.py basic operations."""
- def test_manager_import(self):
- """QueueManager can be imported."""
- from local_deep_research.web.queue.manager import QueueManager
-
- assert QueueManager is not None
-
def test_manager_has_expected_methods(self):
"""QueueManager has expected public methods."""
from local_deep_research.web.queue.manager import QueueManager
diff --git a/tests/web/test_app_factory.py b/tests/web/test_app_factory.py
index 1fe0772cf4..20a4dce088 100644
--- a/tests/web/test_app_factory.py
+++ b/tests/web/test_app_factory.py
@@ -274,13 +274,6 @@ class TestRateLimiting:
app.config["WTF_CSRF_ENABLED"] = False
return app
- def test_limiter_initialized(self, app):
- """Rate limiter is initialized."""
- from local_deep_research.security.rate_limiter import limiter
-
- # Limiter should be attached to the app
- assert limiter is not None
-
class TestErrorHandlers:
"""Tests for error handlers."""
diff --git a/tests/web/utils/test_theme_helper.py b/tests/web/utils/test_theme_helper.py
index 85eeb685d5..76940f1c35 100644
--- a/tests/web/utils/test_theme_helper.py
+++ b/tests/web/utils/test_theme_helper.py
@@ -138,12 +138,6 @@ class TestThemeHelperClearCache:
class TestThemeHelperSingleton:
"""Tests for the singleton theme_helper instance."""
- def test_singleton_instance_exists(self):
- """Test that singleton theme_helper instance exists."""
- from local_deep_research.web.utils.theme_helper import theme_helper
-
- assert theme_helper is not None
-
def test_singleton_is_theme_helper_instance(self):
"""Test that singleton is a ThemeHelper instance."""
from local_deep_research.web.utils.theme_helper import (
diff --git a/tests/web/utils/test_vite_helper.py b/tests/web/utils/test_vite_helper.py
index f3eca86ff9..9258a19d19 100644
--- a/tests/web/utils/test_vite_helper.py
+++ b/tests/web/utils/test_vite_helper.py
@@ -308,12 +308,6 @@ class TestViteHelperFallbackAssets:
class TestViteSingleton:
"""Tests for the singleton vite instance."""
- def test_singleton_instance_exists(self):
- """Test that singleton vite instance exists."""
- from local_deep_research.web.utils.vite_helper import vite
-
- assert vite is not None
-
def test_singleton_is_vite_helper_instance(self):
"""Test that singleton is a ViteHelper instance."""
from local_deep_research.web.utils.vite_helper import vite, ViteHelper
diff --git a/tests/web_search_engines/test_retriever_registry.py b/tests/web_search_engines/test_retriever_registry.py
index afa7e15418..bca2a0884a 100644
--- a/tests/web_search_engines/test_retriever_registry.py
+++ b/tests/web_search_engines/test_retriever_registry.py
@@ -249,14 +249,6 @@ class TestListRegistered:
class TestGlobalRegistry:
"""Tests for global registry instance."""
- def test_global_registry_exists(self):
- """Global registry instance exists."""
- from local_deep_research.web_search_engines.retriever_registry import (
- retriever_registry,
- )
-
- assert retriever_registry is not None
-
def test_global_registry_is_retriever_registry(self):
"""Global registry is RetrieverRegistry instance."""
from local_deep_research.web_search_engines.retriever_registry import (