[PR #28595] add unit tests for template transform node #32105

Closed
opened 2026-02-21 20:50:45 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/28595

State: closed
Merged: Yes


Added unit tests for the template_transform workflow node.

Fixes #28700

Tests cover:

  • Entity validation (TemplateTransformNodeData)
  • Node initialization and configuration
  • Simple and complex Jinja2 template transformations
  • Error handling (code execution errors, output length limits)
  • Variable handling (None values, numeric, dict, list types)
  • Edge cases (empty variables, static templates)

Contribution by Gittensor, learn more at https://gittensor.io/

**Original Pull Request:** https://github.com/langgenius/dify/pull/28595 **State:** closed **Merged:** Yes --- Added unit tests for the template_transform workflow node. Fixes #28700 Tests cover: - Entity validation (TemplateTransformNodeData) - Node initialization and configuration - Simple and complex Jinja2 template transformations - Error handling (code execution errors, output length limits) - Variable handling (None values, numeric, dict, list types) - Edge cases (empty variables, static templates) *Contribution by Gittensor, learn more at https://gittensor.io/*
yindo added the pull-request label 2026-02-21 20:50:45 -05:00
yindo closed this issue 2026-02-21 20:50:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32105