dify/api/tests/unit_tests/services
tmimmanuel 8b634a9bee
refactor: use EnumText for ApiToolProvider.schema_type_str and Docume… (#33983)
2026-03-24 13:27:50 +09:00
..
auth refactor(api): type auth service credentials with TypedDict (#33867) 2026-03-24 13:22:17 +09:00
enterprise fix: enterprise API error handling and license enforcement (#33044) 2026-03-15 20:59:41 -07:00
plugin test: add UTs for api/ services.plugin (#32588) 2026-03-12 11:27:29 +08:00
recommend_app test: add UTs for api/services recommend_app, tools, workflow (#32645) 2026-03-12 11:37:03 +08:00
retention feat: add metrics to clean message and workflow-run task (#33143) 2026-03-17 13:55:28 +08:00
tools test: migrate api tools manage service tests to testcontainers (#33956) 2026-03-24 02:54:33 +09:00
workflow test: remove mock-based tests superseded by testcontainers (#33946) 2026-03-23 21:55:50 +09:00
__init__.py
controller_api.py
dataset_metadata.py
dataset_permission_service.py test: migrate dataset permission service SQL tests to testcontainers (#32546) 2026-03-06 07:21:25 +09: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
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: use EnumText for ApiToolProvider.schema_type_str and Docume… (#33983) 2026-03-24 13:27:50 +09: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 refactor: use EnumText for ApiToolProvider.schema_type_str and Docume… (#33983) 2026-03-24 13:27:50 +09:00
services_test_help.py
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_advanced_prompt_template_service.py test: add unit tests for some services (#32866) 2026-03-11 16:05:07 +08:00
test_agent_service.py test: add unit tests for some services (#32866) 2026-03-11 16:05:07 +08:00
test_annotation_service.py test: add unit tests for some services (#32866) 2026-03-11 16:05:07 +08:00
test_api_token_service.py test: add tests for some files in services module (#32583) 2026-03-11 14:21:56 +08:00
test_app_dsl_service.py chore: change draft var to user scoped (#33066) 2026-03-16 14:04:41 +08:00
test_app_dsl_service_import_yaml_url.py
test_app_generate_service.py test: add new unit tests for message service utilities, get message, feedback, and retention services. (#33169) 2026-03-10 13:55:18 +08:00
test_app_generate_service_streaming_integration.py feat: support redis xstream (#32586) 2026-03-04 13:18:55 +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_service.py test: add unit tests for some services (#32866) 2026-03-11 16:05:07 +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 test: add tests for some files in services module (#32583) 2026-03-11 14:21:56 +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_batch_indexing_base.py test: add unit tests for some services (#32866) 2026-03-11 16:05:07 +08:00
test_billing_service.py chore: add guard tests for billing (#33831) 2026-03-23 09:45:32 +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 chore(deps-dev): bump the dev group across 1 directory with 18 updates (#33322) 2026-03-12 01:02:28 +09: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 refactor: use EnumText for Conversation/Message invoke_from and from_source (#33832) 2026-03-21 11:47:48 +09:00
test_dataset_service.py test: migrate test_dataset_service SQL tests to testcontainers (#32535) 2026-02-27 22:40:20 +09:00
test_dataset_service_lock_not_owned.py refactor: use EnumText for ApiToolProvider.schema_type_str and Docume… (#33983) 2026-03-24 13:27:50 +09:00
test_datasource_provider_service.py test: add unit tests for some services (#32866) 2026-03-11 16:05:07 +08:00
test_document_indexing_task_proxy.py
test_duplicate_document_indexing_task_proxy.py
test_export_app_messages.py feat: add export app messages (#32990) 2026-03-07 11:27:15 +08:00
test_external_dataset_service.py
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_file_service.py test: add new unit tests for message service utilities, get message, feedback, and retention services. (#33169) 2026-03-10 13:55:18 +08:00
test_hit_testing_service.py test: add unit tests for some services (#32866) 2026-03-11 16:05:07 +08:00
test_human_input_delivery_test_service.py feat: apply markdown rendering to HITL email, sanitize email subject and body (#32305) 2026-03-16 16:52:46 +08:00
test_human_input_service.py test: add new unit tests for message service utilities, get message, feedback, and retention services. (#33169) 2026-03-10 13:55:18 +08:00
test_knowledge_service.py test: add unit tests for some services (#32866) 2026-03-11 16:05:07 +08:00
test_message_service.py refactor: use EnumText for MessageFeedback and MessageFile columns (#33738) 2026-03-20 01:13:26 +09:00
test_messages_clean_service.py feat: add metrics to clean message and workflow-run task (#33143) 2026-03-17 13:55:28 +08:00
test_metadata_bug_complete.py
test_metadata_nullable_bug.py
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_metadata_service.py test: add unit tests for services-part-1 (#33050) 2026-03-23 00:02:41 +08:00
test_model_load_balancing_service.py test: add unit tests for services-part-1 (#33050) 2026-03-23 00:02:41 +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_operation_service.py test: add unit tests for some services (#32866) 2026-03-11 16:05:07 +08:00
test_ops_service.py test: added test for services of ops, summary, vector, website and ji… (#32893) 2026-03-12 15:34:20 +08:00
test_rag_pipeline_task_proxy.py
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_schedule_service.py refactor(api): move workflow knowledge nodes and trigger nodes (#33445) 2026-03-15 15:24:59 +08:00
test_summary_index_service.py refactor: use EnumText for ApiToolProvider.schema_type_str and Docume… (#33983) 2026-03-24 13:27:50 +09:00
test_tag_service.py refactor: use EnumText for Conversation/Message invoke_from and from_source (#33901) 2026-03-23 16:03:35 +09:00
test_trigger_provider_service.py test: add unit tests for services-part-1 (#33050) 2026-03-23 00:02:41 +08:00
test_variable_truncator.py refactor: move workflow package to dify_graph (#32844) 2026-03-02 18:42:30 +08:00
test_vector_service.py refactor: use EnumText for ApiToolProvider.schema_type_str and Docume… (#33983) 2026-03-24 13:27:50 +09:00
test_webapp_auth_service.py test: add unit tests for services-part-1 (#33050) 2026-03-23 00:02:41 +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_website_service.py refactor(api): type Firecrawl API responses with TypedDict (#33691) 2026-03-19 04:00:06 +09:00
test_workflow_app_service.py test: add unit tests for services-part-1 (#33050) 2026-03-23 00:02:41 +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 test: add unit tests for services-part-1 (#33050) 2026-03-23 00:02:41 +08:00
test_workspace_service.py test: add unit tests for services-part-1 (#33050) 2026-03-23 00:02:41 +08:00
vector_service.py refactor: use EnumText for ApiToolProvider.schema_type_str and Docume… (#33983) 2026-03-24 13:27:50 +09:00