[PR #236] [MERGED] fix: add more test cases for model factory #247

Closed
opened 2026-02-15 21:16:24 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/236
Author: @Yeuoly
Created: 11/14/2025
Status: Merged
Merged: 11/14/2025
Merged by: @Yeuoly

Base: mainHead: fix/model-factory-test


📝 Commits (6)

📊 Changes

3 files changed (+147 additions, -14 deletions)

View changed files

📝 python/tests/interfaces/model/test_model_registry_get_model.py (+70 -14)
python/tests/interfaces/model/test_text_embedding.py (+50 -0)
python/tests/interfaces/model/utils.py (+27 -0)

📄 Description

Pull Request Checklist

Thank you for your contribution! Before submitting your PR, please make sure you have completed the following checks:

Compatibility Check

  • I have checked whether this change affects the backward compatibility of the plugin declared in README.md
  • I have checked whether this change affects the forward compatibility of the plugin declared in README.md
  • If this change introduces a breaking change, I have discussed it with the project maintainer and specified the release version in the README.md
  • I have described the compatibility impact and the corresponding version number in the PR description
  • I have checked whether the plugin version is updated in the README.md

Available Checks

  • Code has passed local tests
  • Relevant documentation has been updated (if necessary)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-sdks/pull/236 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 11/14/2025 **Status:** ✅ Merged **Merged:** 11/14/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `fix/model-factory-test` --- ### 📝 Commits (6) - [`a03cfe2`](https://github.com/langgenius/dify-plugin-sdks/commit/a03cfe2b2e70a4ae447e89517ea4be3004b0bcbe) fix: add more test cases for model factory - [`eee44ed`](https://github.com/langgenius/dify-plugin-sdks/commit/eee44ed2224f3c165661b5e5c7319f1a6bd5bd4d) fic: apply ruff - [`66e20e6`](https://github.com/langgenius/dify-plugin-sdks/commit/66e20e6e20733ac9d1fa6581c433fad1c869ac30) fix: apply input_type to MockTextEmbeddingModel - [`108e7d9`](https://github.com/langgenius/dify-plugin-sdks/commit/108e7d9292de168498d45f83a405cd906f256633) fix: add comments - [`df3d517`](https://github.com/langgenius/dify-plugin-sdks/commit/df3d51739e6b67b835605a9e0dfbcd6477796ce0) fix: ci - [`8b84ec0`](https://github.com/langgenius/dify-plugin-sdks/commit/8b84ec0ae812dedd1a18ed504d11a92daf0da7a0) apply riff ### 📊 Changes **3 files changed** (+147 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `python/tests/interfaces/model/test_model_registry_get_model.py` (+70 -14) ➕ `python/tests/interfaces/model/test_text_embedding.py` (+50 -0) ➕ `python/tests/interfaces/model/utils.py` (+27 -0) </details> ### 📄 Description # Pull Request Checklist Thank you for your contribution! Before submitting your PR, please make sure you have completed the following checks: ## Compatibility Check - [ ] I have checked whether this change affects the **backward compatibility** of the plugin declared in `README.md` - [ ] I have checked whether this change affects the **forward compatibility** of the plugin declared in `README.md` - [ ] If this change introduces a breaking change, I have discussed it with the project maintainer and specified the release version in the `README.md` - [ ] I have described the compatibility impact and the corresponding version number in the PR description - [ ] I have checked whether the plugin version is updated in the `README.md` ## Available Checks - [ ] Code has passed local tests - [ ] Relevant documentation has been updated (if necessary) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 21:16:24 -05:00
yindo closed this issue 2026-02-15 21:16:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-sdks#247