dify/api/tests/unit_tests/libs
Harry ef9a741781 feat(trigger): enhance trigger management with new error handling and response structure
- Added `TriggerInvokeError` and `TriggerIgnoreEventError` for better error categorization during trigger invocation.
- Updated `TriggerInvokeResponse` to include a `cancelled` field, indicating if a trigger was ignored.
- Enhanced `TriggerManager` to handle specific errors and return appropriate responses.
- Refactored `dispatch_triggered_workflows` to improve workflow execution logic and error handling.

These changes improve the robustness and clarity of the trigger management system.
2025-09-23 16:01:59 +08:00
..
test_cron_compatibility.py feat(trigger): enhance trigger management with new error handling and response structure 2025-09-23 16:01:59 +08:00
test_datetime_utils.py Typing test (#24651) 2025-08-28 09:36:39 +08:00
test_email.py chore: apply flake8-pytest-style linter rules (#8307) 2024-09-12 18:09:16 +08:00
test_email_i18n.py refactor: centralize email internationalization handling (#22752) 2025-07-23 00:26:00 +08:00
test_flask_utils.py feat: add a flask_context_manager. (#21061) 2025-06-17 16:31:29 +08:00
test_helper.py feat(libs): Introduce `extract_tenant_id` (#22086) 2025-07-09 17:45:56 +08:00
test_jwt_imports.py chore: bump supabase and pyjwt versions and added tests (#24681) 2025-08-28 13:45:56 +08:00
test_login.py test: add comprehensive unit tests for login decorator (#22294) 2025-07-14 09:34:13 +08:00
test_oauth_clients.py test: add comprehensive OAuth authentication unit tests (#22528) 2025-07-17 14:20:59 +08:00
test_pandas.py chore(api/tests): apply ruff reformat #7590 (#7591) 2024-08-23 23:52:25 +08:00
test_passport.py test: add comprehensive unit tests for PassportService with exception handling optimization (#22268) 2025-07-12 19:56:20 +08:00
test_password.py test: add unit tests for password validation and hashing (#22003) 2025-07-08 10:00:00 +08:00
test_rsa.py chore(api/tests): apply ruff reformat #7590 (#7591) 2024-08-23 23:52:25 +08:00
test_schedule_utils_enhanced.py feat(trigger): enhance trigger management with new error handling and response structure 2025-09-23 16:01:59 +08:00
test_uuid_utils.py Typing test (#24651) 2025-08-28 09:36:39 +08:00
test_yarl.py fix: return absolute path as the icon url if CONSOLE_API_URL is empty (#15279) 2025-03-10 13:15:06 +08:00