dify/api/tests/unit_tests/services
2026-03-01 16:53:09 +08:00
..
auth test(api): add autospec to MagicMock-based patch usage (#32752) 2026-03-01 04:30:45 +08:00
enterprise feat(enterprise): auto-join newly registered accounts to the default workspace (#32308) 2026-03-01 16:53:09 +08:00
tools feat: Human Input Node (#32060) 2026-02-09 14:57:23 +08:00
workflow test(api): add autospec to MagicMock-based patch usage (#32752) 2026-03-01 04:30:45 +08:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
controller_api.py Add comprehensive API/controller tests for dataset endpoints (list, create, update, delete, documents, segments, hit testing, external datasets) (#28750) 2025-11-27 10:59:17 +08:00
dataset_metadata.py Add comprehensive unit tests for MetadataService (dataset metadata CRUD operations and filtering) (#28748) 2025-11-27 11:00:10 +08:00
dataset_permission_service.py test: add unit tests for dataset permission service (#28760) 2025-11-27 15:00:55 +08:00
dataset_service_update_delete.py refactor(workflow): inject credential/model access ports into LLM nodes (#32569) 2026-02-27 14:36:41 +08:00
document_indexing_task_proxy.py feat: enable tenant isolation on duplicate document indexing tasks (#29080) 2025-12-08 17:54:57 +08:00
document_service_status.py test: migrate document_service_status SQL tests to testcontainers (#32536) 2026-02-28 01:50:55 +09:00
document_service_validation.py test: add unit tests for document service validation and configuration (#28810) 2025-11-28 11:21:45 +08:00
external_dataset_service.py test(api): add autospec to MagicMock-based patch usage (#32752) 2026-03-01 04:30:45 +08:00
hit_service.py test(api): add autospec to MagicMock-based patch usage (#32752) 2026-03-01 04:30:45 +08:00
segment_service.py test(api): add autospec to MagicMock-based patch usage (#32752) 2026-03-01 04:30:45 +08:00
services_test_help.py Add unit test for account service (#22278) 2025-07-12 19:58:42 +08:00
test_account_service.py feat(enterprise): auto-join newly registered accounts to the default workspace (#32308) 2026-03-01 16:53:09 +08:00
test_app_dsl_service_import_yaml_url.py fix: YAML URL import rewrite for GitHub attachments (#30003) 2025-12-23 19:14:39 +09:00
test_app_generate_service.py feat: Human Input Node (#32060) 2026-02-09 14:57:23 +08:00
test_app_task_service.py refactor(workflow): inject redis into graph engine manager (#32622) 2026-02-27 13:29:52 +08:00
test_archive_workflow_run_logs.py test(api): add autospec to MagicMock-based patch usage (#32752) 2026-03-01 04:30:45 +08:00
test_audio_service.py test(api): add autospec to MagicMock-based patch usage (#32752) 2026-03-01 04:30:45 +08:00
test_billing_service.py fix: billing account deletion (#31556) 2026-01-27 11:18:23 +08:00
test_clear_free_plan_expired_workflow_run_logs.py feat(api): add scheduled cleanup task for specific workflow logs (#31843) 2026-02-11 20:54:36 +08:00
test_clear_free_plan_tenant_expired_logs.py Update ast-grep pattern for session.query (#24828) 2025-08-31 17:03:51 +08:00
test_conversation_service.py test(api): add autospec to MagicMock-based patch usage (#32752) 2026-03-01 04:30:45 +08:00
test_dataset_permission.py Refactor: use logger = logging.getLogger(__name__) in logging (#24515) 2025-08-26 18:10:31 +08:00
test_dataset_service_batch_update_document_status.py chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
test_dataset_service_create_dataset.py refactor(workflow): inject credential/model access ports into LLM nodes (#32569) 2026-02-27 14:36:41 +08:00
test_dataset_service_delete_dataset.py fix: handle None values in dataset and document deletion logic (#27083) 2025-10-20 12:52:48 +08:00
test_dataset_service_lock_not_owned.py chore: ignore redis lock not owned error (#29064) 2025-12-04 10:14:28 +08:00
test_dataset_service.py test: migrate test_dataset_service SQL tests to testcontainers (#32535) 2026-02-27 22:40:20 +09:00
test_delete_archived_workflow_run.py test(api): add autospec to MagicMock-based patch usage (#32752) 2026-03-01 04:30:45 +08:00
test_document_indexing_task_proxy.py feat: enable tenant isolation on duplicate document indexing tasks (#29080) 2025-12-08 17:54:57 +08:00
test_document_service_display_status.py test: migrate test_document_service_display_status SQL tests to testcontainers (#32545) 2026-02-25 05:13:22 +09:00
test_document_service_rename_document.py chore: skip upload_file_id is missing (#29666) 2025-12-15 21:09:53 +08:00
test_duplicate_document_indexing_task_proxy.py feat: enable tenant isolation on duplicate document indexing tasks (#29080) 2025-12-08 17:54:57 +08:00
test_end_user_service.py test: migrate end user service SQL tests to testcontainers (#32530) 2026-02-25 04:49:49 +09:00
test_external_dataset_service.py chore: not slient call external service error (#29290) 2025-12-09 10:25:33 +08:00
test_feature_service_human_input_email_delivery.py feat: Human Input Node (#32060) 2026-02-09 14:57:23 +08:00
test_feedback_service.py test: add comprehensive unit tests for FeedbackService (#28771) 2025-11-28 11:33:56 +08:00
test_file_service_zip_and_lookup.py feat: Download the uploaded files (#31068) 2026-01-19 16:48:13 +08:00
test_human_input_delivery_test_service.py feat: Human Input Node (#32060) 2026-02-09 14:57:23 +08:00
test_human_input_service.py fix(api): excessive high CPU usage caused by RedisClientWrapper (#32212) 2026-02-11 09:49:29 +08:00
test_message_service.py feat: add comprehensive unit tests for MessageService (#28837) 2025-11-28 12:36:15 +08:00
test_messages_clean_service.py test(api): add autospec to MagicMock-based patch usage (#32752) 2026-03-01 04:30:45 +08:00
test_metadata_bug_complete.py refactor: port reqparse to BaseModel (#28993) 2025-12-08 15:31:19 +09:00
test_metadata_nullable_bug.py refactor: port reqparse to BaseModel (#28993) 2025-12-08 15:31:19 +09:00
test_metadata_partial_update.py fix: metadata batch edit silently fails due to split transactions and swallowed exceptions (#32041) 2026-02-12 12:59:59 +08:00
test_model_provider_service_sanitization.py chore: remove icon_large of models (#30466) 2026-01-03 02:35:17 +09:00
test_rag_pipeline_task_proxy.py refactor: implement tenant self queue for rag tasks (#27559) 2025-11-06 21:25:50 +08:00
test_recommended_app_service.py test(api): add autospec to MagicMock-based patch usage (#32752) 2026-03-01 04:30:45 +08:00
test_restore_archived_workflow_run.py test: migrate restore_archived_workflow_run SQL tests to testcontainers (#32590) 2026-02-26 03:24:58 +09:00
test_saved_message_service.py test(api): add autospec to MagicMock-based patch usage (#32752) 2026-03-01 04:30:45 +08:00
test_schedule_service.py feat: introduce trigger functionality (#27644) 2025-11-12 17:59:37 +08:00
test_tag_service.py test(api): add autospec to MagicMock-based patch usage (#32752) 2026-03-01 04:30:45 +08:00
test_variable_truncator.py refactor(workflow): move variables package into core.workflow (#32750) 2026-03-01 03:15:09 +08:00
test_webhook_service.py test(api): add autospec to MagicMock-based patch usage (#32752) 2026-03-01 04:30:45 +08:00
test_workflow_run_service_pause.py test(api): add autospec to MagicMock-based patch usage (#32752) 2026-03-01 04:30:45 +08:00
test_workflow_service.py refactor(workflow): inject http request node config through factories and defaults (#32365) 2026-02-25 16:29:59 +08:00
vector_service.py test: add comprehensive unit tests for VectorService and Vector classes (#28834) 2025-11-28 12:30:02 +08:00