dify/api/tests/unit_tests/models
QuantumGhost 13dc1c8795
Simplify `execution_metadata` Handling for `WorkflowNodeExecution` (#20062)
Currently, `WorkflowNodeExecution.execution_metadata_dict` returns `None` when metadata is absent in the database. This requires all callers to perform `None` checks when processing metadata, leading to more complex caller-side logic.

This pull request updates the `execution_metadata_dict` method to return an empty dictionary instead of `None` when metadata is absent. This change would simplify the caller logic, as it removes the need for explicit `None` checks and provides a more consistent data structure to work with.
2025-05-21 18:38:16 +08:00
..
test_account.py chore(api/tests): apply ruff reformat #7590 (#7591) 2024-08-23 23:52:25 +08:00
test_conversation_variable.py Feat: upgrade variable assigner (#11285) 2024-12-03 13:56:40 +08:00
test_types_enum_text.py feat(api): Introduce `WorkflowDraftVariable` Model (#19737) 2025-05-19 22:59:56 +08:00
test_workflow.py Simplify `execution_metadata` Handling for `WorkflowNodeExecution` (#20062) 2025-05-21 18:38:16 +08:00