[PR #133] [MERGED] chore: add unit test for AgentStrategy constructor #169

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

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/133
Author: @Yeuoly
Created: 5/7/2025
Status: Merged
Merged: 5/7/2025
Merged by: @Yeuoly

Base: mainHead: fix/agent-unexpected-keyword-args-runtime


📝 Commits (3)

  • a4a6c1c feat: add unit test for AgentStrategy constructor
  • 5f71506 fix: apply ruff
  • 6eaa372 fix: correct argument order in AgentStrategyImpl instantiation in test

📊 Changes

1 file changed (+31 additions, -1 deletions)

View changed files

📝 python/tests/interfaces/agent/test_agent.py (+31 -1)

📄 Description

  • Introduced a new test to validate the constructor of the AgentStrategy class, ensuring it is not overridden.
  • Created an implementation of AgentStrategy for testing purposes, confirming that the constructor behaves as expected.
  • Utilized ThreadPoolExecutor and session management to facilitate the test setup.

🔄 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/133 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 5/7/2025 **Status:** ✅ Merged **Merged:** 5/7/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `fix/agent-unexpected-keyword-args-runtime` --- ### 📝 Commits (3) - [`a4a6c1c`](https://github.com/langgenius/dify-plugin-sdks/commit/a4a6c1c47bcc2e6a65d00f737cc423cd17d1d79b) feat: add unit test for AgentStrategy constructor - [`5f71506`](https://github.com/langgenius/dify-plugin-sdks/commit/5f71506c32133e76d8415de9cd9e6fc69ef357df) fix: apply ruff - [`6eaa372`](https://github.com/langgenius/dify-plugin-sdks/commit/6eaa372fa9522cbadebe0a142c99c385e2e36629) fix: correct argument order in AgentStrategyImpl instantiation in test ### 📊 Changes **1 file changed** (+31 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `python/tests/interfaces/agent/test_agent.py` (+31 -1) </details> ### 📄 Description - Introduced a new test to validate the constructor of the AgentStrategy class, ensuring it is not overridden. - Created an implementation of AgentStrategy for testing purposes, confirming that the constructor behaves as expected. - Utilized ThreadPoolExecutor and session management to facilitate the test setup. --- <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:04 -05:00
yindo closed this issue 2026-02-15 21:16:04 -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#169