dify/api/tests/unit_tests/services
Novice 94b01f6821
Merge commit '92bde350' into sandboxed-agent-rebase
Made-with: Cursor

# Conflicts:
#	api/controllers/console/app/workflow_draft_variable.py
#	api/core/agent/cot_agent_runner.py
#	api/core/agent/cot_chat_agent_runner.py
#	api/core/agent/cot_completion_agent_runner.py
#	api/core/agent/fc_agent_runner.py
#	api/core/app/apps/advanced_chat/app_generator.py
#	api/core/app/apps/advanced_chat/app_runner.py
#	api/core/app/apps/agent_chat/app_runner.py
#	api/core/app/apps/workflow/app_generator.py
#	api/core/app/apps/workflow/app_runner.py
#	api/core/app/entities/app_invoke_entities.py
#	api/core/app/entities/queue_entities.py
#	api/core/llm_generator/output_parser/structured_output.py
#	api/core/workflow/workflow_entry.py
#	api/dify_graph/context/__init__.py
#	api/dify_graph/entities/tool_entities.py
#	api/dify_graph/file/file_manager.py
#	api/dify_graph/graph_engine/response_coordinator/coordinator.py
#	api/dify_graph/graph_events/node.py
#	api/dify_graph/node_events/node.py
#	api/dify_graph/nodes/agent/agent_node.py
#	api/dify_graph/nodes/llm/entities.py
#	api/dify_graph/nodes/llm/llm_utils.py
#	api/dify_graph/nodes/llm/node.py
#	api/dify_graph/nodes/question_classifier/question_classifier_node.py
#	api/dify_graph/runtime/graph_runtime_state.py
#	api/dify_graph/variables/segments.py
#	api/factories/variable_factory.py
#	api/services/variable_truncator.py
#	api/tests/unit_tests/utils/structured_output_parser/test_structured_output_parser.py
#	api/uv.lock
#	web/app/components/app-sidebar/app-info.tsx
#	web/app/components/app-sidebar/app-sidebar-dropdown.tsx
#	web/app/components/app/create-app-modal/index.spec.tsx
#	web/app/components/apps/__tests__/list.spec.tsx
#	web/app/components/apps/app-card.tsx
#	web/app/components/apps/list.tsx
#	web/app/components/header/account-dropdown/compliance.tsx
#	web/app/components/header/account-dropdown/index.tsx
#	web/app/components/header/account-dropdown/support.tsx
#	web/app/components/workflow-app/components/workflow-onboarding-modal/index.tsx
#	web/app/components/workflow/panel/debug-and-preview/hooks.ts
#	web/contract/console/apps.ts
#	web/contract/router.ts
#	web/eslint-suppressions.json
#	web/next.config.ts
#	web/pnpm-lock.yaml
2026-03-23 09:39:49 +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 refactor(api): move model_runtime into dify_graph (#32858) 2026-03-02 20:15:32 +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 refactor(api): move model_runtime into dify_graph (#32858) 2026-03-02 20:15:32 +08:00
external_dataset_service.py refactor: move workflow package to dify_graph (#32844) 2026-03-02 18:42:30 +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 fix(api): decouple enterprise default-workspace join from personal workspace creation (#32938) 2026-03-04 14:16:23 +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_streaming_integration.py feat: support redis xstream (#32586) 2026-03-04 13:18:55 +08:00
test_app_generate_service.py fix: fix chat assistant response mode blocking is not work (#32394) 2026-03-02 14:05:04 +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 test: migrate test_dataset_service_batch_update_document_status SQL tests to testcontainers (#32537) 2026-03-03 20:29:58 +09:00
test_dataset_service_create_dataset.py test: migrate test_dataset_service_create_dataset SQL tests to testcontainers (#32538) 2026-03-04 03:40:18 +09: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_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 refactor: move workflow package to dify_graph (#32844) 2026-03-02 18:42:30 +08:00
test_human_input_service.py refactor: move workflow package to dify_graph (#32844) 2026-03-02 18:42:30 +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 refactor(api): move model_runtime into dify_graph (#32858) 2026-03-02 20:15:32 +08: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 refactor: move workflow package to dify_graph (#32844) 2026-03-02 18:42:30 +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: move workflow package to dify_graph (#32844) 2026-03-02 18:42:30 +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_collaboration_service.py test: update unit tests for system message handling and workflow collaboration serices 2026-03-19 17:19:56 +08:00
test_workflow_comment_service.py test: update unit tests for system message handling and workflow collaboration serices 2026-03-19 17:19:56 +08:00
test_workflow_run_service_pause.py refactor: move workflow package to dify_graph (#32844) 2026-03-02 18:42:30 +08:00
test_workflow_service.py Merge commit '92bde350' into sandboxed-agent-rebase 2026-03-23 09:39:49 +08:00
vector_service.py test: add comprehensive unit tests for VectorService and Vector classes (#28834) 2025-11-28 12:30:02 +08:00