dify/api/tests/unit_tests/services
copilot-swe-agent[bot] 215d3ed42d
Merge remote-tracking branch 'origin/deploy/dev' into feat/evaluation
# Conflicts:
#	.vite-hooks/pre-commit
#	api/controllers/console/__init__.py
#	api/core/agent/base_agent_runner.py
#	api/core/app/app_config/easy_ui_based_app/model_config/converter.py
#	api/core/app/apps/agent_chat/app_runner.py
#	api/core/entities/provider_configuration.py
#	api/core/helper/moderation.py
#	api/core/model_manager.py
#	api/core/rag/embedding/cached_embedding.py
#	api/core/rag/retrieval/dataset_retrieval.py
#	api/core/rag/splitter/fixed_text_splitter.py
#	api/core/workflow/nodes/datasource/datasource_node.py
#	api/core/workflow/nodes/knowledge_index/knowledge_index_node.py
#	api/models/human_input.py
#	api/providers/trace/trace-tencent/src/dify_trace_tencent/span_builder.py
#	api/services/workflow_service.py
#	api/tasks/trigger_processing_tasks.py
#	api/tests/integration_tests/core/workflow/nodes/datasource/test_datasource_node_integration.py
#	api/tests/integration_tests/workflow/nodes/test_http.py
#	api/tests/integration_tests/workflow/nodes/test_parameter_extractor.py
#	api/tests/unit_tests/controllers/service_api/app/test_conversation.py
#	api/tests/unit_tests/core/prompt/test_agent_history_prompt_transform.py
#	api/tests/unit_tests/core/variables/test_segment.py
#	api/tests/unit_tests/core/workflow/graph_engine/test_mock_factory.py
#	api/tests/unit_tests/core/workflow/nodes/answer/test_answer.py
#	api/tests/unit_tests/core/workflow/nodes/datasource/test_datasource_node.py
#	api/tests/unit_tests/core/workflow/nodes/http_request/test_http_request_node.py
#	api/tests/unit_tests/core/workflow/nodes/human_input/test_email_delivery_config.py
#	api/tests/unit_tests/services/workflow/test_workflow_human_input_delivery.py
#	web/app/(commonLayout)/layout.tsx
#	web/app/components/app/configuration/dataset-config/params-config/weighted-score.tsx
#	web/app/components/app/configuration/debug/debug-with-multiple-model/debug-item.tsx
#	web/app/components/app/workflow-log/__tests__/list.spec.tsx
#	web/app/components/apps/__tests__/list.spec.tsx
#	web/app/components/apps/list.tsx
#	web/app/components/base/chat/chat-with-history/header/operation.tsx
#	web/app/components/base/chat/chat-with-history/sidebar/operation.tsx
#	web/app/components/header/account-setting/data-source-page-new/operator.tsx
#	web/app/components/header/account-setting/members-page/operation/index.tsx
#	web/app/components/plugins/marketplace/sort-dropdown/__tests__/index.spec.tsx
#	web/app/components/plugins/marketplace/sort-dropdown/index.tsx
#	web/app/components/plugins/plugin-page/plugin-tasks/index.tsx
#	web/app/components/workflow/header/__tests__/test-run-menu.spec.tsx
#	web/app/components/workflow/header/test-run-menu.tsx
#	web/app/components/workflow/nodes/_base/components/next-step/operator.tsx
#	web/app/components/workflow/nodes/_base/components/panel-operator/index.tsx
#	web/app/components/workflow/nodes/assigner/components/__tests__/operation-selector.spec.tsx
#	web/app/components/workflow/nodes/assigner/components/operation-selector.tsx
#	web/app/components/workflow/operator/__tests__/more-actions.spec.tsx
#	web/app/components/workflow/operator/zoom-in-out.tsx
#	web/app/components/workflow/panel/version-history-panel/context-menu/menu-item.tsx
#	web/app/components/workflow/selection-contextmenu.tsx
#	web/eslint-suppressions.json

Co-authored-by: FFXN <31929997+FFXN@users.noreply.github.com>
2026-04-20 07:03:29 +00:00
..
auth refactor: replace bare dict with dict[str, Any] in services unit test helpers (#35182) 2026-04-14 18:37:59 +00:00
enterprise test: add tests for api/services retention, enterprise, plugin (#32648) 2026-03-31 03:16:42 +00:00
plugin fix: sqlalchemy.orm.exc.DetachedInstanceError (#34910) 2026-04-10 07:44:22 +00:00
rag_pipeline feat: evaluation (#35353) 2026-04-17 16:37:21 +08:00
recommend_app test: migrate database retrieval tests to testcontainers (#34087) 2026-03-25 23:06:46 +09:00
retention test: add tests for api/services retention, enterprise, plugin (#32648) 2026-03-31 03:16:42 +00:00
tools refactor(services): migrate builtin_tools_manage_service to SQLAlchemy 2.0 select() API (#34973) 2026-04-12 01:25:51 +00:00
workflow Merge remote-tracking branch 'origin/deploy/dev' into feat/evaluation 2026-04-20 07:03:29 +00: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_service_test_helpers.py feat: evaluation (#35353) 2026-04-17 16:37:21 +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_validation.py Merge deploy/dev into feat/evaluation - resolve merge conflicts 2026-04-17 08:29:13 +00:00
external_dataset_service.py refactor: replace bare dict with dict[str, Any] in services unit test helpers (#35182) 2026-04-14 18:37:59 +00:00
hit_service.py refactor: replace bare dict with dict[str, Any] in services unit test helpers (#35182) 2026-04-14 18:37:59 +00:00
segment_service.py refactor(api): continue decoupling dify_graph from API concerns (#33580) 2026-03-25 20:32:24 +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 test(types): replace Account/Tenant status string literals with enum values (#35267) 2026-04-15 15:52:38 +00:00
test_annotation_service.py refactor: select in annotation_service (#34503) 2026-04-03 22:47:22 +00:00
test_app_generate_service_streaming_integration.py refactor: replace bare dict with dict[str, Any] in controller and core unit tests (#35181) 2026-04-14 17:51:49 +00:00
test_app_generate_service.py feat: evaluation (#35251) 2026-04-15 16:09:40 +08:00
test_app_model_config_service.py test: add tests for some files in services module (#32583) 2026-03-11 14:21:56 +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_async_workflow_service.py Merge deploy/dev into feat/evaluation - resolve merge conflicts 2026-04-17 08:29:13 +00:00
test_audio_service.py refactor: replace bare dict with dict[str, Any] in RAG and service unit tests (#35184) 2026-04-14 17:50:43 +00:00
test_batch_indexing_base.py test: add unit tests for some services (#32866) 2026-03-11 16:05:07 +08:00
test_billing_service.py feat: evaluation (#35251) 2026-04-15 16:09:40 +08:00
test_clear_free_plan_expired_workflow_run_logs.py feat: add metrics to clean message and workflow-run task (#33143) 2026-03-17 13:55:28 +08:00
test_clear_free_plan_tenant_expired_logs.py refactor(services): migrate dataset_service and clear_free_plan_tenant_expired_logs to SQLAlchemy 2.0 select() API (#34970) 2026-04-12 01:21:52 +00:00
test_code_based_extension_service.py test: add tests for some files in services module (#32583) 2026-03-11 14:21:56 +08:00
test_conversation_service.py Merge deploy/dev into feat/evaluation - resolve merge conflicts 2026-04-17 08:29:13 +00:00
test_dataset_service_dataset.py test: migrate dataset service dataset mock tests to testcontainers (#35194) 2026-04-14 19:52:31 +00:00
test_dataset_service_document.py feat: evaluation (#35353) 2026-04-17 16:37:21 +08:00
test_dataset_service_lock_not_owned.py test: replace indexing_technique string literals with IndexTechnique (#34042) 2026-03-25 12:39:58 +09:00
test_dataset_service_segment.py refactor: select in dataset_service (SegmentService and remaining cla… (#34547) 2026-04-05 00:13:06 +00:00
test_datasource_provider_service.py feat: evaluation (#35353) 2026-04-17 16:37:21 +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_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_export_app_messages.py feat: add export app messages (#32990) 2026-03-07 11:27:15 +08:00
test_external_dataset_service.py refactor: replace bare dict with dict[str, Any] in services unit test helpers (#35182) 2026-04-14 18:37:59 +00:00
test_feature_service_human_input_email_delivery.py feat: Human Input Node (#32060) 2026-02-09 14:57:23 +08:00
test_file_service.py refactor: migrate session.query to select API in file service (#34852) 2026-04-09 14:15:59 +00:00
test_human_input_service.py Merge deploy/dev into feat/evaluation - resolve merge conflicts 2026-04-17 08:29:13 +00:00
test_knowledge_service.py refactor: replace dict with BedrockRetrievalSetting BaseModel in knowledge_service (#34080) 2026-03-25 21:33:24 +09:00
test_message_service.py feat: support ttft report to langfuse (#33344) 2026-04-13 06:21:58 +00:00
test_messages_clean_service.py refactor: replace bare dict with dict[str, Any] in controller and core unit tests (#35181) 2026-04-14 17:51:49 +00: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_model_load_balancing_service.py feat: evaluation (#35353) 2026-04-17 16:37:21 +08:00
test_model_provider_service_sanitization.py Merge deploy/dev into feat/evaluation - resolve merge conflicts 2026-04-17 08:29:13 +00:00
test_model_provider_service.py feat: evaluation (#35353) 2026-04-17 16:37:21 +08:00
test_operation_service.py refactor: replace bare dict with dict[str, Any] in services unit test helpers (#35182) 2026-04-14 18:37:59 +00: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_schedule_service.py test: migrate schedule service mock tests to testcontainers (#35196) 2026-04-14 20:34:53 +00:00
test_summary_index_service.py refactor(services): migrate summary_index_service to SQLAlchemy 2.0 select() API (#34971) 2026-04-12 01:37:16 +00:00
test_trigger_provider_service.py refactor: replace bare dict with dict[str, Any] in services unit test helpers (#35182) 2026-04-14 18:37:59 +00:00
test_variable_truncator_additional.py feat: evaluation (#35353) 2026-04-17 16:37:21 +08:00
test_variable_truncator.py Merge remote-tracking branch 'origin/deploy/dev' into feat/evaluation 2026-04-20 07:03:29 +00:00
test_vector_service.py refactor: select in 10 service files (#34373) 2026-04-01 08:03:49 +00:00
test_webhook_service_additional.py feat: evaluation (#35353) 2026-04-17 16:37:21 +08:00
test_webhook_service.py fix merge error 2026-04-17 17:34:15 +08:00
test_website_service.py refactor: replace bare dict with dict[str, Any] in services unit test helpers (#35182) 2026-04-14 18:37:59 +00:00
test_workflow_collaboration_service.py feat: collaboration (#30781) 2026-04-16 02:21:04 +00:00
test_workflow_comment_service.py feat: collaboration (#30781) 2026-04-16 02:21:04 +00:00
test_workflow_run_service_pause.py Merge deploy/dev into feat/evaluation - resolve merge conflicts 2026-04-17 08:29:13 +00:00
test_workflow_run_service.py test: split merged API test modules and remove F811 ignore (#35105) 2026-04-14 03:54:30 +00:00
test_workflow_service.py chore(api): adapt Graphon 0.2.2 upgrade (#35377) 2026-04-18 11:16:24 +00:00
vector_service.py refactor: replace bare dict with dict[str, Any] in services unit test helpers (#35182) 2026-04-14 18:37:59 +00:00