Add unit tests for template transform workflow node #20571

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

Originally created by @0xsatoshi99 on GitHub (Nov 26, 2025).

Description

The template transform workflow node currently lacks unit test coverage. Tests should be added to ensure the node works correctly.

Test Coverage Needed

  • 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)

Benefits

  • Improved code quality and reliability
  • Easier refactoring and maintenance
  • Better documentation of expected behavior
Originally created by @0xsatoshi99 on GitHub (Nov 26, 2025). ## Description The template transform workflow node currently lacks unit test coverage. Tests should be added to ensure the node works correctly. ## Test Coverage Needed - 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) ## Benefits - Improved code quality and reliability - Easier refactoring and maintenance - Better documentation of expected behavior
yindo added the 💪 enhancement label 2026-02-21 20:08:00 -05:00
yindo closed this issue 2026-02-21 20:08:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#20571