dify/api/tests/unit_tests/services
Renzo 4e1d060439
refactor: select in message_service and ops_service (#34414)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-01 16:37:27 +00:00
..
auth perf: use global httpx client instead of per request create new one (#34311) 2026-04-01 01:19:32 +00:00
enterprise test: add tests for api/services retention, enterprise, plugin (#32648) 2026-03-31 03:16:42 +00:00
plugin test: add tests for api/services retention, enterprise, plugin (#32648) 2026-03-31 03:16:42 +00: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: select in 10 service files (#34373) 2026-04-01 08:03:49 +00:00
workflow test: migrate workflow service tests to testcontainers (#34206) 2026-03-29 21:50:21 +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_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: migrate dataset permission service SQL tests to testcontainers (#32546) 2026-03-06 07:21:25 +09:00
dataset_service_test_helpers.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
dataset_service_update_delete.py refactor(api): continue decoupling dify_graph from API concerns (#33580) 2026-03-25 20:32:24 +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): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
external_dataset_service.py refactor(api): rename dify_graph to graphon (#34095) 2026-03-25 21:58:56 +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(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 fix(api): decouple enterprise default-workspace join from personal workspace creation (#32938) 2026-03-04 14:16:23 +08:00
test_annotation_service.py test: add unit tests for some services (#32866) 2026-03-11 16:05:07 +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_dsl_service.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00: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 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_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 test: add tests for some files in services module (#32583) 2026-03-11 14:21:56 +08:00
test_audio_service.py refactor: select in 13 small service files (#34371) 2026-04-01 04:00:05 +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 refactor: select in 13 small service files (#34371) 2026-04-01 04:00:05 +00: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: select in 13 small service files (#34371) 2026-04-01 04:00:05 +00:00
test_dataset_service_dataset.py fix: import path (#34124) 2026-03-26 16:13:53 +08:00
test_dataset_service_document.py fix: import path (#34124) 2026-03-26 16:13:53 +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 fix: import path (#34124) 2026-03-26 16:13:53 +08:00
test_datasource_provider_service.py perf: use global httpx client instead of per request create new one (#34311) 2026-04-01 01:19:32 +00: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 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_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_service.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +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 refactor: select in message_service and ops_service (#34414) 2026-04-01 16:37:27 +00: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 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 refactor: use EnumText for model_type in provider models (#34300) 2026-03-31 00:31:33 +00:00
test_model_provider_service_sanitization.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00: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 refactor: select in message_service and ops_service (#34414) 2026-04-01 16:37:27 +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_recommended_app_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(api): move workflow knowledge nodes and trigger nodes (#33445) 2026-03-15 15:24:59 +08:00
test_summary_index_service.py refactor(api): continue decoupling dify_graph from API concerns (#33580) 2026-03-25 20:32:24 +08: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(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
test_vector_service.py refactor: select in 10 service files (#34373) 2026-04-01 08:03:49 +00: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 perf: use global httpx client instead of per request create new one (#34311) 2026-04-01 01:19:32 +00:00
test_workflow_run_service_pause.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
test_workflow_service.py refactor: select in 10 service files (#34373) 2026-04-01 08:03:49 +00:00
vector_service.py refactor(api): continue decoupling dify_graph from API concerns (#33580) 2026-03-25 20:32:24 +08:00