test(tools): comprehensive test suite for workflow_tool module (+60 tests) - #148
Open
manus-use wants to merge 1 commit into
Open
test(tools): comprehensive test suite for workflow_tool module (+60 tests)#148manus-use wants to merge 1 commit into
manus-use wants to merge 1 commit into
Conversation
This was referenced Jul 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Comprehensive test suite for the
manus_agent.tools.workflow_toolmodule — 60 fully-mocked tests covering theManusWorkflowManagerclass and theworkflow_tool()entry-point function.What's tested
ManusWorkflowManager.init (3 tests)
ManusWorkflowManager.get_agent_for_task (9 tests)
ManusWorkflowManager.execute_task (20 tests)
ManusWorkflowManager.create_workflow (7 tests)
workflow_tool() entry point (15 tests)
TOOL_SPEC validation (3 tests)
Edge cases (3 tests)
Test methodology
asyncio.run()Test results
(Baseline: 1158 + 60 new = 1218 total, 0 failures)
Open PRs checked (no overlap)
Checked all 50+ open PRs. Specifically confirmed no overlap with:
No existing open or merged PR covers workflow_tool.py testing. The only reference to
WorkflowAgentin tests is a single import check intest_packageability.py.