dify/api/tests/unit_tests/services
2026-08-24 17:23:04 +08:00
..
agent refactor(agent): simplify Agent v2 output contract (#41062) 2026-08-21 11:55:25 +00:00
auth refactor(api): decouple data source API key auth flow (#40452) 2026-08-18 04:30:17 +00:00
data_migration test: add tmp_path type (#40724) 2026-08-21 06:09:39 +00:00
enterprise refactor(api): move account lifecycle into application services (#40438) 2026-08-21 08:05:43 +00:00
openapi test: eliminate remaining whole config mocks (#40855) 2026-08-18 12:01:49 +00:00
plugin test: add tmp_path type (#40724) 2026-08-21 06:09:39 +00:00
rag_pipeline fix(agent): complete ownership-aware deletion lifecycle (#40888) 2026-08-20 07:48:02 +00:00
retention test: scope plugin and datasource config overrides (#40854) 2026-08-18 12:01:29 +00:00
tools test: eliminate remaining whole config mocks (#40855) 2026-08-18 12:01:49 +00:00
workflow refactor(agent): simplify Agent v2 output contract (#41062) 2026-08-21 11:55:25 +00:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
controller_api.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
dataset_service_test_helpers.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
document_service_validation.py test: use sqlite sessions in rag pipeline coverage (#40093) 2026-08-11 06:19:08 +00:00
hit_service.py test: use real ORM models in dataset service tests (#40018) 2026-08-06 04:14:12 +00:00
test_account_activation_adapters.py fix(api): handle suspended email domains (#41004) 2026-08-20 08:04:05 +00:00
test_account_activation_service.py fix(api): handle suspended email domains (#41004) 2026-08-20 08:04:05 +00:00
test_account_avatar_file_gateway.py refactor(api): move account access behind application services (#40437) 2026-08-21 05:56:30 +00:00
test_account_avatar_service.py refactor(api): move account access behind application services (#40437) 2026-08-21 05:56:30 +00:00
test_account_billing_adapters.py refactor(api): finish account controller application boundary (#40440) 2026-08-21 08:46:06 +00:00
test_account_change_email_adapters.py refactor(api): extract change email state machine (#40439) 2026-08-21 08:13:23 +00:00
test_account_change_email_service.py refactor(api): extract change email state machine (#40439) 2026-08-21 08:13:23 +00:00
test_account_deletion_adapters.py refactor(api): extract change email state machine (#40439) 2026-08-21 08:13:23 +00:00
test_account_deletion_feedback_service.py refactor(api): finish account controller application boundary (#40440) 2026-08-21 08:46:06 +00:00
test_account_deletion_service.py refactor(api): move account lifecycle into application services (#40438) 2026-08-21 08:05:43 +00:00
test_account_education_service.py refactor(api): finish account controller application boundary (#40440) 2026-08-21 08:46:06 +00:00
test_account_initialization_service.py refactor(api): move account lifecycle into application services (#40438) 2026-08-21 08:05:43 +00:00
test_account_integration_service.py refactor(api): move account access behind application services (#40437) 2026-08-21 05:56:30 +00:00
test_account_password_hasher.py refactor(api): move account access behind application services (#40437) 2026-08-21 05:56:30 +00:00
test_account_password_service.py refactor(api): move account access behind application services (#40437) 2026-08-21 05:56:30 +00:00
test_account_profile_service.py refactor(api): add account profile application service (#40436) 2026-08-20 05:03:08 +00:00
test_account_service.py refactor(api): move account access behind application services (#40437) 2026-08-21 05:56:30 +00:00
test_agent_app_feature_service.py test: use sqlite3 session in test_agent_app_feature_service (#38724) 2026-07-28 06:32:07 +00:00
test_agent_app_sandbox_service.py test: migrate agent app sandbox sessions and ORM models to SQLite (#40568) 2026-08-12 06:30:17 +00:00
test_agent_config_service.py test: migrate workflow event ORM models to real entities (#40634) 2026-08-14 05:35:10 +00:00
test_agent_llm_inner_service.py feat(api): distinguish credit usage contexts 2026-08-24 17:23:04 +08:00
test_agent_tool_inner_service.py test: use SQLite sessions in services core (#39111) 2026-07-22 02:15:01 +00:00
test_annotation_service.py test: migrate annotation sessions and ORM models to SQLite (#40504) 2026-08-21 06:09:26 +00:00
test_api_token_service.py test: migrate media and execution service sessions and ORM models to SQLite (#40552) 2026-08-20 05:11:46 +00:00
test_app_definition_query_service.py refactor(api): reuse app definition queries for service API site (#40795) 2026-08-19 07:23:47 +00:00
test_app_dsl_service.py fix(api): enforce app-scoped access on indirect resources (#40893) 2026-08-21 00:52:39 +00:00
test_app_generate_service_streaming_integration.py fix(api): prevent dropped workflow_started events in Redis Streams (#40964) 2026-08-21 03:46:50 +00:00
test_app_generate_service.py fix(api): prevent dropped workflow_started events in Redis Streams (#40964) 2026-08-21 03:46:50 +00:00
test_app_model_config_service.py test: migrate service boundary sessions and ORM models to SQLite (#40533) 2026-08-18 12:23:33 +00:00
test_app_service.py fix(agent): complete ownership-aware deletion lifecycle (#40888) 2026-08-20 07:48:02 +00:00
test_app_task_service.py feat(api): Agent App type S1 — AppMode.AGENT + create flow + binding (#36829) 2026-06-02 03:50:10 +00:00
test_archive_workflow_run_logs.py test: eliminate remaining whole config mocks (#40855) 2026-08-18 12:01:49 +00:00
test_async_workflow_service.py test: migrate media and execution service sessions and ORM models to SQLite (#40552) 2026-08-20 05:11:46 +00:00
test_audio_service.py feat(api): distinguish credit usage contexts 2026-08-24 17:23:04 +08:00
test_batch_indexing_base.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_billing_service.py fix(api): handle suspended email domains (#41004) 2026-08-20 08:04:05 +00:00
test_clear_free_plan_expired_workflow_run_logs.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_clear_free_plan_tenant_expired_logs.py test: migrate expired log workflow ORM models to real entities (#40645) 2026-08-14 05:33:46 +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 test: eliminate remaining whole config mocks (#40855) 2026-08-18 12:01:49 +00:00
test_credential_permission_service.py test: migrate residual service and task ORM models to SQLite (#40576) 2026-08-18 12:26:01 +00:00
test_credit_pool_service.py feat(api): distinguish credit usage contexts 2026-08-24 17:23:04 +08:00
test_dataset_service_dataset.py test: migrate dataset service sessions and ORM models to SQLite (#40534) 2026-08-18 12:35:57 +00:00
test_dataset_service_document.py test: migrate document service sessions and ORM models to SQLite (#40536) 2026-08-20 05:10:13 +00:00
test_dataset_service_lock_not_owned.py test: use sqlite3 session in test_dataset_service_lock_not_owned (#38755) 2026-07-14 06:40:31 +00:00
test_dataset_service_segment.py fix(api): scope segment batch deletes (#38217) 2026-08-01 01:39:40 +00:00
test_datasource_provider_service.py test: scope plugin and datasource config overrides (#40854) 2026-08-18 12:01:29 +00:00
test_document_indexing_task_proxy.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_duplicate_document_indexing_task_proxy.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_email_code_login_challenge.py fix(auth): harden email code login verification (#40960) 2026-08-19 06:57:47 +00: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 test: migrate service boundary sessions and ORM models to SQLite (#40533) 2026-08-18 12:23:33 +00:00
test_feature_entities.py fix(web): render workspace plan badge during SSR (#40581) 2026-08-12 07:45:39 +00:00
test_feature_query_service.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_feature_service_app_dsl_version.py refactor(api): decouple console queries through application services (#40031) 2026-08-07 00:42:55 +00:00
test_feature_service_change_email.py refactor: centralize deployment edition in system features (#39454) 2026-07-24 07:15:02 +00:00
test_feature_service_deployment_edition.py refactor(api): decouple recommended app runtime admission (#40257) 2026-08-20 13:13:43 +00:00
test_feature_service_enable_app_deploy.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_feature_service_explore_banner.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_feature_service_gateway.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_feature_service_human_input_email_delivery.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_feature_service_internal_policies.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_feature_service_knowledge_file_size_limit.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_feature_service_knowledge_fs.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_feature_service_learn_app.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_feature_service_license_expiry_notice.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_feature_service_licensed_seats.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_feature_service_plugin_installation_permission.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_feature_service_sso_protocol.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_feature_service_trial_models.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_feature_service_vector_space.py test: eliminate remaining whole config mocks (#40855) 2026-08-18 12:01:49 +00:00
test_feature_service_webapp_public_access.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_feedback_service.py fix(api): end_date filter in feedback export excludes the entire end date (#40114) 2026-08-10 03:27:56 +00:00
test_file_request_service.py feat(agent): separate CLI file URL audiences (#39952) 2026-08-04 13:14:02 +00:00
test_file_service.py refactor(api): extract web app runtime bootstrap (#40949) 2026-08-20 05:05:31 +00:00
test_hit_testing_service.py test: move hit testing service coverage to unit tests (#38925) 2026-07-15 03:37:16 +00:00
test_human_input_delivery_test_service.py refactor(api): decouple console queries through application services (#40031) 2026-08-07 00:42:55 +00:00
test_human_input_file_upload_service.py chore(api): upgrade graphon to v0.6.0, migrate HITL logic back to Dify (#38247) 2026-07-03 03:45:21 +00:00
test_human_input_service.py test: share unbound unit test sessions (#39690) 2026-07-28 14:12:08 +00:00
test_init_validation_service.py refactor(api): extract init validation into layered application service (#40046) 2026-08-12 08:42:09 +00:00
test_knowledge_fs_proxy.py feat(dataset): add crawl source selection (#39325) 2026-07-24 07:11:48 +00:00
test_knowledge_retrieval_inner_service.py test: use SQLite sessions in services core (#39112) 2026-07-16 09:32:11 +00:00
test_message_service.py test: migrate media and execution service sessions and ORM models to SQLite (#40552) 2026-08-20 05:11:46 +00:00
test_messages_clean_service.py test: eliminate remaining whole config mocks (#40855) 2026-08-18 12:01:49 +00:00
test_metadata_bug_complete.py fix(api): bind dataset operations to owners (#40149) 2026-08-11 16:37:14 +00:00
test_metadata_nullable_bug.py fix(api): bind dataset operations to owners (#40149) 2026-08-11 16:37:14 +00:00
test_metadata_service_session_boundary.py test: migrate service boundary sessions and ORM models to SQLite (#40533) 2026-08-18 12:23:33 +00:00
test_model_load_balancing_service.py feat: support azure keyvault (#39933) 2026-08-07 00:42:13 +00:00
test_model_provider_service_sanitization.py chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
test_model_provider_service.py test: migrate service boundary sessions and ORM models to SQLite (#40533) 2026-08-18 12:23:33 +00:00
test_oauth_device_flow.py test: use sqlite3 session in test_oauth_device_flow (#38782) 2026-07-13 07:48:15 +00:00
test_oauth_server_service.py test: migrate controller identity ORM models to SQLite (#40626) 2026-08-14 08:54:48 +00:00
test_operation_service.py fix: bound OperationService billing requests (#37425) 2026-06-22 06:45:03 +00:00
test_rag_pipeline_task_proxy.py test: migrate RAG processor residuals to SQLite ORM models (#40608) 2026-08-15 09:54:09 +00:00
test_recommended_app_catalog_gateway.py refactor(api): replace legacy recommended app retrieval stack (#40395) 2026-08-20 13:13:43 +00:00
test_recommended_app_query_service.py refactor(api): replace legacy recommended app retrieval stack (#40395) 2026-08-20 13:13:43 +00:00
test_schedule_service.py test: use real ORM models in workflow repository tests (#40019) 2026-08-06 04:06:04 +00:00
test_schema_definition_service.py refactor(api): decouple setup and spec endpoints (#40104) 2026-08-08 11:52:15 +00:00
test_setup_adapters.py refactor(api): decouple setup and spec endpoints (#40104) 2026-08-08 11:52:15 +00:00
test_setup_service.py refactor(api): decouple setup and spec endpoints (#40104) 2026-08-08 11:52:15 +00:00
test_snippet_dsl_service.py fix(snippet): support snippet history version export (#41012) 2026-08-20 08:52:45 +00:00
test_snippet_generate_service.py test: migrate snippet service ORM models to SQLite (#40567) 2026-08-20 05:12:30 +00:00
test_snippet_service.py fix(agent): complete ownership-aware deletion lifecycle (#40888) 2026-08-20 07:48:02 +00:00
test_step_by_step_tour_service.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_summary_index_service.py test: use real ORM models in RAG indexing tests (#40017) 2026-08-05 10:03:23 +00:00
test_tag_application_service.py refactor(api): decouple console tag management (#40843) 2026-08-20 12:31:01 +00:00
test_telemetry_service.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00
test_trigger_provider_service.py test: use SQLite sessions in services core (#39057) 2026-07-27 09:36:44 +00:00
test_trigger_subscription_builder_service.py fix(api): scope temporary capabilities to owners (#39863) 2026-08-07 09:21:13 +00:00
test_turnstile_service.py fix(auth): harden email code login verification (#40960) 2026-08-19 06:57:47 +00:00
test_variable_truncator_additional.py chore(api): convert BaseTruncator from ABC to Protocol (#37199) 2026-06-09 02:55:36 +00:00
test_variable_truncator.py fix(api): honor array-element limit and byte budget for list[File] in VariableTruncator (#39218) (#39220) 2026-07-27 02:12:57 +00:00
test_vector_service.py test: migrate media and execution service sessions and ORM models to SQLite (#40552) 2026-08-20 05:11:46 +00:00
test_vector_space_admission_service.py test: migrate vector space admission sessions and ORM models to SQLite (#40640) 2026-08-21 06:10:13 +00:00
test_web_app_runtime_query_service.py refactor(api): extract web app runtime bootstrap (#40949) 2026-08-20 05:05:31 +00:00
test_webapp_access_query_service.py refactor(api): reuse web app access queries for permissions (#40984) 2026-08-20 02:27:49 +00:00
test_webhook_service_additional.py refactor(tests): replace mock_logger with caplog in 5 service tests (#37468) (#37715) 2026-06-22 05:53:51 +00:00
test_webhook_service.py test: move webhook service coverage to unit tests (#38945) 2026-08-06 04:48:27 +00:00
test_website_service.py fix(api): bound JinaReader and adaptive-crawl HTTP timeouts (#39859) (#39860) 2026-08-02 02:49:17 +00:00
test_workflow_app_service_metadata.py test: move workflow app service coverage to unit tests (#38946) 2026-07-28 05:34:59 +00:00
test_workflow_collaboration_service.py fix(api): enforce app-scoped access on indirect resources (#40893) 2026-08-21 00:52:39 +00:00
test_workflow_comment_service.py test: use sqlite3 session in test_workflow_comment_service (#38700) 2026-07-27 08:22:45 +00:00
test_workflow_generator_service.py feat(api): distinguish credit usage contexts 2026-08-24 17:23:04 +08:00
test_workflow_node_execution_trace_service.py test: migrate workflow node trace ORM models to real entities (#40657) 2026-08-13 05:19:52 +00:00
test_workflow_run_service_pause.py test: use SQLite sessions in services core (#39090) 2026-07-28 03:20:27 +00:00
test_workflow_run_service.py test: migrate residual service and task ORM models to SQLite (#40576) 2026-08-18 12:26:01 +00:00
test_workflow_service.py fix(api): enforce app-scoped access on indirect resources (#40893) 2026-08-21 00:52:39 +00:00
test_workspace_credit_pool.py test: migrate service boundary sessions and ORM models to SQLite (#40533) 2026-08-18 12:23:33 +00:00
test_workspace_member_query_service.py refactor(api): extract workspace member listing into layered service (#39974) 2026-08-06 01:08:39 +00:00
test_workspace_member_role_resolver.py refactor(api): extract workspace member listing into layered service (#39974) 2026-08-06 01:08:39 +00:00
test_workspace_service.py refactor(api): consolidate deployment edition handling (#40142) 2026-08-11 07:39:01 +00:00