Skip to content

test: added unit test for remaining files in core helper folder#33288

Merged
QuantumGhost merged 108 commits intolanggenius:mainfrom
infocusp-fullstack:test/api-core-helper
Apr 2, 2026
Merged

test: added unit test for remaining files in core helper folder#33288
QuantumGhost merged 108 commits intolanggenius:mainfrom
infocusp-fullstack:test/api-core-helper

Conversation

@akashseth-ifp
Copy link
Copy Markdown
Contributor

Checklist

  • This change requires a documentation update.
  • I added tests for the introduced backend helper changes.
  • I validated the new test files with lint and test runs.
  • Full project type-check is clean in this environment

Unit Test Added Summary

Added test files

  • api/tests/unit_tests/core/helper/test_download.py

  • api/tests/unit_tests/core/helper/test_http_client_pooling.py

  • api/tests/unit_tests/core/helper/test_credential_utils.py

  • api/tests/unit_tests/core/helper/test_marketplace.py

  • api/tests/unit_tests/core/helper/test_moderation.py

  • api/tests/unit_tests/core/helper/test_name_generator.py

  • api/tests/unit_tests/core/helper/test_tool_parameter_cache.py

  • api/tests/unit_tests/core/helper/code_executor/test_code_executor.py

  • api/tests/unit_tests/core/helper/code_executor/test_code_node_provider.py

  • api/tests/unit_tests/core/helper/code_executor/test_template_transformer.py

  • api/tests/unit_tests/core/helper/code_executor/jinja2/test_jinja2_formatter.py

  • Result: ✅ Passed (38/38 tests)

Coverage Report (Changed Source Files)

File Lines (%) Branches (%)
api/core/helper/download.py 100.00 100.00
api/core/helper/http_client_pooling.py 93.94 90.00
api/core/helper/credential_utils.py 100.00 100.00
api/core/helper/marketplace.py 100.00 100.00
api/core/helper/moderation.py 100.00 90.00
api/core/helper/name_generator.py 100.00 100.00
api/core/helper/tool_parameter_cache.py 100.00 100.00
api/core/helper/code_executor/code_executor.py 98.59 100.00
api/core/helper/code_executor/code_node_provider.py 94.44 100.00
api/core/helper/code_executor/template_transformer.py 94.81 95.12
api/core/helper/code_executor/jinja2/jinja2_formatter.py 100.00 100.00

Fixes Issue - #32379

akashseth-ifp and others added 30 commits February 25, 2026 14:28
@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

No changes detected.

@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

No changes detected.

@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

No changes detected.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 1, 2026

Pyrefly Diff

No changes detected.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 1, 2026

Pyrefly Diff

No changes detected.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 1, 2026

Pyrefly Diff

No changes detected.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 1, 2026

Pyrefly Diff

No changes detected.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 1, 2026

Pyrefly Diff

No changes detected.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 2, 2026

Pyrefly Diff

No changes detected.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 2, 2026

Pyrefly Diff

No changes detected.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 2, 2026

Pyrefly Diff

No changes detected.

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Apr 2, 2026
@QuantumGhost QuantumGhost added this pull request to the merge queue Apr 2, 2026
Merged via the queue into langgenius:main with commit 9a8c853 Apr 2, 2026
27 checks passed
volcano303 pushed a commit to volcano303/dify that referenced this pull request Apr 7, 2026
…genius#33288)

Co-authored-by: rajatagarwal-oss <rajat.agarwal@infocusp.com>
Co-authored-by: sahil-infocusp <73810410+sahil-infocusp@users.noreply.github.com>
HanqingZ pushed a commit to HanqingZ/dify that referenced this pull request Apr 23, 2026
…genius#33288)

Co-authored-by: rajatagarwal-oss <rajat.agarwal@infocusp.com>
Co-authored-by: sahil-infocusp <73810410+sahil-infocusp@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer needs-revision size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants