~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
fix: remove 152 stub tests that inflate CI test counts (#2041)
LearningCircuitcfd6856335b2
diff --git a/tests/advanced_search_system/source_management/test_diversity_manager.py b/tests/advanced_search_system/source_management/test_diversity_manager.pydeleted file mode 100644index 366cbbdb07..0000000000--- a/tests/advanced_search_system/source_management/test_diversity_manager.py+++ /dev/null@@ -1,134 +0,0 @@-"""-Tests for Source Diversity Manager--Phase 24: Search Optimization - Diversity Manager Tests-Tests source diversity and selection functionality.-"""---class TestSourceDiversity:- """Tests for source diversity"""-- def test_diversity_score_calculation(self):- """Test diversity score calculation"""- # Test computing diversity metrics- pass-- def test_source_clustering(self):- """Test source clustering"""- # Test grouping similar sources- pass-- def test_cluster_balance_optimization(self):- """Test cluster balance"""- # Test balancing sources across clusters- pass-- def test_domain_diversity(self):- """Test domain diversity"""- # Test diversity across domains- pass-- def test_temporal_diversity(self):- """Test temporal diversity"""- # Test diversity across time- pass-- def test_perspective_diversity(self):- """Test perspective diversity"""- # Test viewpoint diversity- pass-- def test_geographic_diversity(self):- """Test geographic diversity"""- # Test regional diversity- pass-- def test_author_diversity(self):- """Test author diversity"""- # Test author variety- pass-- def test_publication_type_diversity(self):- """Test publication type diversity"""- # Test source type variety- pass-- def test_diversity_threshold_enforcement(self):- """Test diversity threshold enforcement"""- # Test minimum diversity requirements- pass-- def test_diversity_boosting(self):- """Test diversity boosting"""- # Test increasing diversity scores- pass-- def test_diversity_vs_relevance_trade_off(self):- """Test diversity vs relevance trade-off"""- # Test balancing diversity and relevance- pass---class TestSourceSelection:- """Tests for source selection"""-- def test_source_ranking(self):- """Test source ranking"""- # Test ranking sources by quality- pass-- def test_source_filtering(self):- """Test source filtering"""- # Test filtering out low-quality sources- pass-- def test_source_deduplication(self):- """Test source deduplication"""- # Test removing duplicate sources- pass-- def test_source_quality_assessment(self):- """Test source quality assessment"""- # Test evaluating source quality- pass-- def test_source_freshness_scoring(self):- """Test source freshness scoring"""- # Test recency weighting- pass-- def test_source_authority_scoring(self):- """Test source authority scoring"""- # Test authority metrics- pass-- def test_source_coverage_optimization(self):- """Test source coverage optimization"""- # Test maximizing topic coverage- pass-- def test_source_cost_optimization(self):- """Test source cost optimization"""- # Test minimizing API costs- pass-- def test_source_latency_optimization(self):- """Test source latency optimization"""- # Test minimizing response time- pass-- def test_source_availability_check(self):- """Test source availability check"""- # Test checking if source is accessible- pass-- def test_source_fallback_selection(self):- """Test fallback source selection"""- # Test selecting alternative sources- pass-- def test_source_load_balancing(self):- """Test source load balancing"""- # Test distributing load across sources- passdiff --git a/tests/benchmarks/test_optuna_optimizer_extended.py b/tests/benchmarks/test_optuna_optimizer_extended.pydeleted file mode 100644index e92228594c..0000000000--- a/tests/benchmarks/test_optuna_optimizer_extended.py+++ /dev/null@@ -1,143 +0,0 @@-"""-Extended Tests for Optuna Optimizer--Phase 23: Benchmarks & Optimization - Optuna Optimizer Tests-Tests hyperparameter optimization and visualization.-"""--import pytest-from unittest.mock import patch, MagicMock---class TestOptunaOptimization:- """Tests for Optuna optimization functionality"""-- @patch("optuna.create_study")- def test_optimizer_initialization(self, mock_create_study):- """Test optimizer initialization"""- mock_study = MagicMock()- mock_create_study.return_value = mock_study-- # Test would create optimizer and verify study creation-- @patch("optuna.create_study")- def test_study_creation(self, mock_create_study):- """Test Optuna study creation"""- mock_study = MagicMock()- mock_study.study_name = "test_study"- mock_create_study.return_value = mock_study-- # Verify study is created with correct parameters-- def test_trial_suggestion(self):- """Test trial parameter suggestion"""- # Test suggest_int, suggest_float, suggest_categorical- pass-- def test_objective_function_evaluation(self):- """Test objective function evaluation"""- # Test evaluating trial results- pass-- def test_hyperparameter_sampling(self):- """Test hyperparameter sampling"""- # Test parameter sampling strategies- pass-- def test_pruning_strategy(self):- """Test trial pruning"""- # Test early stopping of bad trials- pass-- def test_multi_objective_optimization(self):- """Test multi-objective optimization"""- # Test optimizing multiple objectives- pass-- def test_constraint_handling(self):- """Test constraint handling"""- # Test parameter constraints- pass-- def test_early_stopping(self):- """Test early stopping criteria"""- # Test stopping optimization early- pass-- def test_parallel_trials(self):- """Test parallel trial execution"""- # Test running trials in parallel- pass-- def test_study_persistence(self):- """Test study persistence to database"""- # Test saving study state- pass-- def test_study_resumption(self):- """Test resuming study"""- # Test loading and continuing study- pass-- def test_optimization_history(self):- """Test optimization history tracking"""- # Test recording trial history- pass-- def test_best_params_extraction(self):- """Test extracting best parameters"""- # Test getting optimal config- pass---class TestVisualization:- """Tests for optimization visualization"""-- def test_optimization_history_plot(self):- """Test optimization history plot"""- # Test plotting trial history- pass-- def test_parameter_importance_plot(self):- """Test parameter importance plot"""- # Test importance visualization- pass-- def test_parallel_coordinate_plot(self):- """Test parallel coordinate plot"""- # Test multi-dimensional visualization- pass-- def test_contour_plot(self):- """Test contour plot"""- # Test 2D parameter visualization- pass-- def test_slice_plot(self):- """Test slice plot"""- # Test parameter slice visualization- pass---class TestBenchmarkModules:- """Tests for benchmark module availability"""-- def test_benchmark_modules_exist(self):- """Test benchmark modules can be imported"""- try:- from local_deep_research.benchmarks import comparison-- assert comparison is not None- except ImportError:- pytest.skip("Benchmark modules not available")-- def test_benchmark_results_class(self):- """Test Benchmark_results class exists"""- try:- from local_deep_research.benchmarks.comparison.results import (- Benchmark_results,- )-- assert Benchmark_results is not None- except ImportError:- pytest.skip("Benchmark_results not available")diff --git a/tests/research_library/test_download_service_extended.py b/tests/research_library/test_download_service_extended.pydeleted file mode 100644index 54112e4ae9..0000000000--- a/tests/research_library/test_download_service_extended.py+++ /dev/null@@ -1,182 +0,0 @@-"""-Extended Tests for Download Service--Phase 22: Research Library & RAG - Download Service Tests-Tests PDF download management, storage, and batch processing.-"""---class TestDownloadManagement:- """Tests for download management functionality"""-- def test_download_pdf_success(self):- """Test successful PDF download scenario"""- # This is a template test - actual implementation would need- # proper service mocking- assert True-- def test_download_pdf_retry_on_failure(self):- """Test retry logic on download failure"""- # This is a template test - actual implementation would need- # proper service mocking- assert True-- def test_download_batch_processing(self):- """Test batch download processing"""- # Test multiple downloads in batch- pass-- def test_download_concurrent_limit(self):- """Test concurrent download limiting"""- # Test max concurrent downloads- pass-- def test_download_priority_queue(self):- """Test download priority handling"""- # Test priority ordering- pass-- def test_download_progress_tracking(self):- """Test download progress reporting"""- # Test progress updates- pass-- def test_download_cancellation(self):- """Test download cancellation"""- # Test cancelling in-progress download- pass-- def test_download_resume_interrupted(self):- """Test resuming interrupted download"""- # Test partial download resume- pass-- def test_download_storage_path_resolution(self):- """Test storage path determination"""- # Test file path generation- pass-- def test_download_filename_sanitization(self):- """Test filename sanitization"""- # Test special characters removed- dangerous_names = [- "../../../etc/passwd",- "file<script>.pdf",- "file|rm -rf.pdf",- "file\x00null.pdf",- ]-- for name in dangerous_names:- # Sanitization should remove dangerous chars- pass-- def test_download_duplicate_detection(self):- """Test duplicate download detection"""- # Test detecting already downloaded files- pass-- def test_download_checksum_verification(self):- """Test file checksum verification"""- # Test integrity check- pass-- def test_download_size_limit_enforcement(self):- """Test file size limits"""- # Test max file size- pass-- def test_download_timeout_handling(self):- """Test download timeout"""- # Test timeout behavior- pass-- def test_download_rate_limiting(self):- """Test rate limiting per domain"""- # Test domain-specific rate limits- pass-- def test_download_domain_specific_handling(self):- """Test domain-specific download logic"""- domains = [- "arxiv.org",- "pubmed.ncbi.nlm.nih.gov",- "semanticscholar.org",- ]-- for domain in domains:- # Each domain may have specific handling- pass---class TestStorageManagement:- """Tests for storage management functionality"""-- def test_storage_directory_creation(self):- """Test storage directory creation"""- # Test directory is created if missing- pass-- def test_storage_quota_enforcement(self):- """Test storage quota limits"""- # Test max storage space- pass-- def test_storage_cleanup_old_files(self):- """Test old file cleanup"""- # Test removing old downloads- pass-- def test_storage_deduplication(self):- """Test storage deduplication"""- # Test detecting duplicate content- pass-- def test_storage_file_organization(self):- """Test file organization structure"""- # Test directory structure- pass-- def test_storage_metadata_persistence(self):- """Test metadata storage"""- # Test saving file metadata- pass-- def test_storage_index_maintenance(self):- """Test storage index"""- # Test file index updates- pass-- def test_storage_backup_creation(self):- """Test backup functionality"""- # Test creating backups- pass-- def test_storage_restoration(self):- """Test restoration from backup"""- # Test restoring files- pass-- def test_storage_corruption_detection(self):- """Test corruption detection"""- # Test detecting corrupt files- pass---class TestDownloadServiceModules:- """Tests for download service module imports"""-- def test_download_management_imports(self):- """Test download management modules can be imported"""- from local_deep_research.library.download_management import (- failure_classifier,- )- from local_deep_research.library.download_management import (- retry_manager,- )- from local_deep_research.library.download_management import (- status_tracker,- )-- assert failure_classifier is not None- assert retry_manager is not None- assert status_tracker is not Nonediff --git a/tests/research_library/test_rag_service_extended.py b/tests/research_library/test_rag_service_extended.pydeleted file mode 100644index 6cbef25fb8..0000000000--- a/tests/research_library/test_rag_service_extended.py+++ /dev/null@@ -1,175 +0,0 @@-"""-Extended Tests for RAG Service--Phase 22: Research Library & RAG - RAG Service Tests-Tests RAG indexing and retrieval functionality.-"""--import pytest---class TestRAGIndexing:- """Tests for RAG indexing functionality"""-- def test_index_document_success(self):- """Test successful document indexing"""- # Test indexing a document- pass-- def test_index_batch_documents(self):- """Test batch document indexing"""- # Test indexing multiple documents- pass-- def test_index_update_existing(self):- """Test updating existing document index"""- # Test re-indexing document- pass-- def test_index_delete_document(self):- """Test deleting document from index"""- # Test removal- pass-- def test_index_incremental_update(self):- """Test incremental index updates"""- # Test partial update- pass-- def test_index_full_rebuild(self):- """Test full index rebuild"""- # Test rebuilding entire index- pass-- def test_index_chunk_strategy(self):- """Test document chunking strategy"""- # Test how documents are split- pass-- def test_index_embedding_generation(self):- """Test embedding generation"""- # Test vector generation- pass-- def test_index_metadata_extraction(self):- """Test metadata extraction from documents"""- # Test extracting title, author, etc.- pass-- def test_index_concurrent_indexing(self):- """Test concurrent indexing"""- # Test parallel indexing- pass-- def test_index_progress_tracking(self):- """Test indexing progress reporting"""- # Test progress updates- pass-- def test_index_error_recovery(self):- """Test error recovery during indexing"""- # Test handling failures- pass-- def test_index_validation(self):- """Test index validation"""- # Test verifying index integrity- pass-- def test_index_optimization(self):- """Test index optimization"""- # Test optimizing index structure- pass-- def test_index_large_document(self):- """Test indexing large documents"""- # Test handling big files- pass---class TestRAGRetrieval:- """Tests for RAG retrieval functionality"""-- def test_retrieve_similar_documents(self):- """Test retrieving similar documents"""- # Test similarity search- pass-- def test_retrieve_with_filters(self):- """Test retrieval with filters"""- # Test filtered search- pass-- def test_retrieve_with_ranking(self):- """Test retrieval with ranking"""- # Test result ranking- pass-- def test_retrieve_hybrid_search(self):- """Test hybrid search (semantic + keyword)"""- # Test combined search- pass-- def test_retrieve_semantic_search(self):- """Test semantic search only"""- # Test vector search- pass-- def test_retrieve_keyword_search(self):- """Test keyword search only"""- # Test text search- pass-- def test_retrieve_pagination(self):- """Test result pagination"""- # Test paging through results- pass-- def test_retrieve_relevance_scoring(self):- """Test relevance scoring"""- # Test score calculation- pass-- def test_retrieve_context_window(self):- """Test context window extraction"""- # Test getting surrounding text- pass-- def test_retrieve_multi_query(self):- """Test multi-query retrieval"""- # Test multiple queries- pass-- def test_retrieve_reranking(self):- """Test result reranking"""- # Test reranking results- pass-- def test_retrieve_caching(self):- """Test retrieval caching"""- # Test cache hits- pass-- def test_retrieve_timeout_handling(self):- """Test retrieval timeout"""- # Test timeout behavior- pass-- def test_retrieve_empty_results(self):- """Test handling empty results"""- # Test no matches found- pass---class TestRAGServiceModules:- """Tests for RAG service module availability"""-- def test_rag_modules_exist(self):- """Test RAG-related modules exist"""- # Check module availability- try:- from local_deep_research.web.services import research_service-- assert research_service is not None- except ImportError:- pytest.skip("RAG modules not available")diff --git a/tests/security/test_api_security.py b/tests/security/test_api_security.pyindex d63e7f4dca..bc51ea0ccc 100644--- a/tests/security/test_api_security.py+++ b/tests/security/test_api_security.py@@ -27,6 +27,7 @@ class TestAPISecurityOWASPTop10:return app.test_client()# API1:2023 - Broken Object Level Authorization (BOLA)+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_api1_broken_object_level_authorization(self, client):"""Test that users can only access their own objects.@@ -155,6 +156,7 @@ class TestAPISecurityOWASPTop10:assert response.status_code in [403, 404]# API6:2023 - Unrestricted Access to Sensitive Business Flows+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_api6_unrestricted_sensitive_flows(self, client):"""Test protection of sensitive business logic flows.@@ -234,6 +236,7 @@ class TestAPISecurityOWASPTop10:assert response.status_code == 404# API9:2023 - Improper Inventory Management+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_api9_improper_inventory_management(self):"""Test API documentation and version management.@@ -253,6 +256,7 @@ class TestAPISecurityOWASPTop10:assert True # Documentation/process test# API10:2023 - Unsafe Consumption of APIs+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_api10_unsafe_consumption_of_apis(self, client):"""Test secure consumption of external APIs.diff --git a/tests/security/test_auth_security.py b/tests/security/test_auth_security.pyindex 6efc85477d..cf8a4bb605 100644--- a/tests/security/test_auth_security.py+++ b/tests/security/test_auth_security.py@@ -14,6 +14,7 @@ add_src_to_path()class TestPasswordSecurity:"""Test password security and hashing."""+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_password_hashing_uses_secure_algorithm(self):"""Test that passwords are hashed using a secure algorithm.@@ -27,6 +28,7 @@ class TestPasswordSecurity:# Verify that database encryption key derivation is secureassert True # Documentation test - SQLCipher handles this+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_password_minimum_requirements(self):"""Test that password requirements are enforced (if applicable)."""# Password requirements to consider:@@ -41,6 +43,7 @@ class TestPasswordSecurity:# This is a documentation test for password policypass+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_password_not_logged(self):"""Test that passwords are never logged or exposed in errors."""# Passwords should never appear in:@@ -52,6 +55,7 @@ class TestPasswordSecurity:# This is a security best practiceassert True # Documentation test+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_timing_attack_resistance(self):"""Test that authentication timing is constant to prevent timing attacks.@@ -101,6 +105,7 @@ class TestSessionSecurity:pass # Placeholder for future validation+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_session_expiration(self, client):"""Test that sessions expire appropriately."""# Sessions should:@@ -115,6 +120,7 @@ class TestSessionSecurity:pass # Placeholder - implementation depends on session manager+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_session_regeneration_on_login(self):"""Test that session ID is regenerated after login."""# Session fixation attack prevention:@@ -142,6 +148,7 @@ class TestSessionSecurity:# After logout, protected pages should require re-authentication# This is tested in access control tests+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_concurrent_session_handling(self):"""Test handling of concurrent sessions."""# Concurrent session scenarios:@@ -194,6 +201,7 @@ class TestAccessControl:# Should redirect to login or return 401/403assert response.status_code in [302, 401, 403, 404]+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_authentication_required_decorator(self):"""Test that @login_required decorator is used on protected routes."""# Flask routes should use authentication decorators:@@ -203,6 +211,7 @@ class TestAccessControl:# This is enforced through code review and testingassert True # Documentation test+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_authorization_vs_authentication(self):"""Clarify difference between authentication and authorization.@@ -224,6 +233,7 @@ class TestAccessControl:"""assert True # Documentation test+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_user_data_isolation(self):"""Test that users can only access their own data."""# In multi-user scenario:diff --git a/tests/security/test_cookie_security.py b/tests/security/test_cookie_security.pyindex b824326d5e..96aed8b82c 100644--- a/tests/security/test_cookie_security.py+++ b/tests/security/test_cookie_security.py@@ -355,6 +355,7 @@ class TestCSRFErrorMessage:class TestCookieSecurityDocumentation:"""Documentation tests explaining the security model."""+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_security_model_documentation(self):"""Document the cookie security model.diff --git a/tests/security/test_csrf_protection.py b/tests/security/test_csrf_protection.pyindex ccba5275a9..9e25b4f2fa 100644--- a/tests/security/test_csrf_protection.py+++ b/tests/security/test_csrf_protection.py@@ -184,6 +184,7 @@ class TestCSRFProtection:# This is a documentation testassert True+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_csrf_token_not_leaked_in_logs_or_urls(self):"""Test that CSRF tokens are not leaked in logs or URLs."""# CSRF tokens should:@@ -242,6 +243,7 @@ class TestCSRFProtection:class TestCSRFProtectionDocumentation:"""Documentation tests for CSRF protection strategy."""+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_csrf_protection_strategy_documentation(self):"""Document CSRF protection strategy for LDR.@@ -282,6 +284,7 @@ class TestCSRFProtectionDocumentation:"""assert True # Documentation test+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_csrf_vs_cors_clarification(self):"""Clarify difference between CSRF and CORS.diff --git a/tests/security/test_input_validation.py b/tests/security/test_input_validation.pyindex 1205a7b229..82408220aa 100644--- a/tests/security/test_input_validation.py+++ b/tests/security/test_input_validation.py@@ -5,6 +5,7 @@ Tests that verify user inputs are properly validated and sanitizedacross all application entry points."""+import pytestfrom tests.test_utils import add_src_to_pathadd_src_to_path()@@ -214,6 +215,7 @@ class TestURLInputValidation:# Should rejectpass+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_url_redirect_handling(self):"""Test that URL redirects are handled safely."""# URL redirects can be used for SSRF attacks:@@ -349,6 +351,7 @@ class TestDatabaseInputValidation:class TestSecurityInputValidationDocumentation:"""Documentation tests for input validation strategy."""+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_input_validation_principles(self):"""Document input validation best practices.@@ -400,6 +403,7 @@ class TestSecurityInputValidationDocumentation:"""assert True # Documentation test+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_common_validation_mistakes(self):"""Document common input validation mistakes to avoid.diff --git a/tests/security/test_ssrf_validator.py b/tests/security/test_ssrf_validator.pyindex 3354d5637f..c47432a7b5 100644--- a/tests/security/test_ssrf_validator.py+++ b/tests/security/test_ssrf_validator.py@@ -484,6 +484,7 @@ class TestContainerNetworking:class TestDocumentation:"""Documentation tests explaining the security model."""+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_security_model_documentation(self):"""Document the SSRF protection security model.diff --git a/tests/security/test_xss_prevention.py b/tests/security/test_xss_prevention.pyindex 3922a0f5a4..3f868e99ff 100644--- a/tests/security/test_xss_prevention.py+++ b/tests/security/test_xss_prevention.py@@ -213,6 +213,7 @@ class TestXSSPrevention:except ImportError:pytest.skip("BeautifulSoup not installed")+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_dom_based_xss_prevention(self):"""Test prevention of DOM-based XSS through JavaScript."""# This is a documentation test for frontend security@@ -237,6 +238,7 @@ class TestXSSPrevention:assert True # Documentation test+ @pytest.mark.skip(reason="documentation/placeholder test - not implemented")def test_stored_xss_prevention(self):"""Test that stored XSS (persistent XSS) is prevented.diff --git a/tests/web/routes/test_news_routes_extended.py b/tests/web/routes/test_news_routes_extended.pydeleted file mode 100644index 8ee79906ea..0000000000--- a/tests/web/routes/test_news_routes_extended.py+++ /dev/null@@ -1,144 +0,0 @@-"""-Extended Tests for News Routes--Phase 25: Web Routes Deep Coverage - News Routes Tests-Tests news API endpoints and subscription handling.-"""--import pytest---class TestNewsEndpoints:- """Tests for news API endpoints"""-- def test_get_news_feed(self):- """Test getting news feed"""- # Test news feed retrieval- pass-- def test_get_news_feed_pagination(self):- """Test news feed pagination"""- # Test paging through news- pass-- def test_get_news_feed_filtering(self):- """Test news feed filtering"""- # Test filter by category, source- pass-- def test_get_news_feed_sorting(self):- """Test news feed sorting"""- # Test sorting options- pass-- def test_search_news(self):- """Test news search"""- # Test searching news articles- pass-- def test_get_news_categories(self):- """Test getting news categories"""- # Test category listing- pass-- def test_get_news_sources(self):- """Test getting news sources"""- # Test source listing- pass-- def test_get_news_article(self):- """Test getting single article"""- # Test article retrieval- pass-- def test_save_news_article(self):- """Test saving article"""- # Test bookmarking article- pass-- def test_get_trending_news(self):- """Test getting trending news"""- # Test trending topics- pass-- def test_get_personalized_news(self):- """Test personalized news"""- # Test personalization- pass-- def test_news_preferences(self):- """Test news preferences"""- # Test preference management- pass-- def test_news_history(self):- """Test news history"""- # Test reading history- pass-- def test_news_bookmarks(self):- """Test news bookmarks"""- # Test saved articles- pass---class TestNewsSubscriptions:- """Tests for news subscriptions"""-- def test_create_subscription(self):- """Test creating subscription"""- # Test new subscription- pass-- def test_update_subscription(self):- """Test updating subscription"""- # Test modifying subscription- pass-- def test_delete_subscription(self):- """Test deleting subscription"""- # Test removing subscription- pass-- def test_get_subscriptions(self):- """Test getting subscriptions"""- # Test listing subscriptions- pass-- def test_subscription_filtering(self):- """Test subscription filtering"""- # Test filter options- pass-- def test_subscription_frequency(self):- """Test subscription frequency"""- # Test update frequency- pass-- def test_subscription_notification(self):- """Test subscription notifications"""- # Test notification delivery- pass-- def test_subscription_pause(self):- """Test pausing subscription"""- # Test pause functionality- pass-- def test_subscription_resume(self):- """Test resuming subscription"""- # Test resume functionality- pass---class TestNewsRoutesModule:- """Tests for news routes module"""-- def test_news_routes_importable(self):- """Test news routes can be imported"""- try:- from local_deep_research.web.routes import news_routes-- assert news_routes is not None- except ImportError:- pytest.skip("News routes not available")diff --git a/tests/web/routes/test_research_routes_extended.py b/tests/web/routes/test_research_routes_extended.pydeleted file mode 100644index db9410bceb..0000000000--- a/tests/web/routes/test_research_routes_extended.py+++ /dev/null@@ -1,151 +0,0 @@-"""-Extended Tests for Research Routes--Phase 25: Web Routes Deep Coverage - Research Routes Tests-Tests research API endpoints and concurrency handling.-"""---class TestResearchEndpoints:- """Tests for research API endpoints"""-- def test_start_research_valid(self):- """Test starting research with valid parameters"""- # This is a template test - actual implementation would need- # Flask test client- assert True-- def test_start_research_invalid_query(self):- """Test starting research with invalid query"""- # Test empty query handling- pass-- def test_start_research_rate_limited(self):- """Test rate limiting on research start"""- # Test rate limit behavior- pass-- def test_get_research_status(self):- """Test getting research status"""- # Test status endpoint- pass-- def test_get_research_progress(self):- """Test getting research progress"""- # Test progress updates- pass-- def test_cancel_research(self):- """Test cancelling research"""- # Test cancellation- pass-- def test_pause_research(self):- """Test pausing research"""- # Test pause functionality- pass-- def test_resume_research(self):- """Test resuming research"""- # Test resume functionality- pass-- def test_get_research_results(self):- """Test getting research results"""- # Test results retrieval- pass-- def test_export_research_pdf(self):- """Test PDF export"""- # Test PDF generation- pass-- def test_export_research_markdown(self):- """Test markdown export"""- # Test markdown generation- pass-- def test_export_research_json(self):- """Test JSON export"""- # Test JSON export- pass-- def test_delete_research(self):- """Test deleting research"""- # Test deletion- pass-- def test_get_research_sources(self):- """Test getting research sources"""- # Test sources endpoint- pass---class TestResearchConcurrency:- """Tests for research concurrency handling"""-- def test_concurrent_research_start(self):- """Test concurrent research start requests"""- # Test parallel starts- pass-- def test_max_concurrent_limit(self):- """Test max concurrent research limit"""- # Test limit enforcement- pass-- def test_queue_position_tracking(self):- """Test queue position tracking"""- # Test position updates- pass-- def test_priority_research(self):- """Test priority research handling"""- # Test priority queue- pass-- def test_research_timeout_handling(self):- """Test research timeout"""- # Test timeout behavior- pass-- def test_research_error_recovery(self):- """Test error recovery"""- # Test handling failures- pass-- def test_research_state_persistence(self):- """Test state persistence"""- # Test saving state- pass-- def test_research_crash_recovery(self):- """Test crash recovery"""- # Test recovering from crashes- pass-- def test_research_resource_cleanup(self):- """Test resource cleanup"""- # Test cleaning up resources- pass-- def test_research_socket_notifications(self):- """Test WebSocket notifications"""- # Test real-time updates- pass---class TestResearchRoutesModule:- """Tests for research routes module"""-- def test_research_routes_importable(self):- """Test research routes can be imported"""- from local_deep_research.web.routes import research_routes-- assert research_routes is not None-- def test_blueprint_exists(self):- """Test research blueprint exists"""- from local_deep_research.web.routes.research_routes import research_bp-- assert research_bp is not None