test(tools): comprehensive test suites for search_exploit_db, search_packetstorm, and get_cwe_details (+125 tests) - #173
Open
manus-use wants to merge 1 commit into
Open
Conversation
…packetstorm, and get_cwe_details (+125 tests)
This was referenced Aug 3, 2026
Open
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
Adds comprehensive, fully-mocked test suites for three core security tools that previously had zero test coverage:
search_exploit_db— Exploit-DB search tool (38 tests)search_packetstorm— Packet Storm Security search tool (41 tests)get_cwe_details— CWE weakness lookup tool (46 tests)Total: +125 new tests (baseline 1158 → 1283, 0 failures)
What's tested
For each module, the test suite covers:
log_tool_output_sizecalled on every code pathWhy these three tools?
These are core security intelligence tools used by
VulnerabilityIntelligenceAgentfor exploit discovery and weakness classification. A regression in their HTML parsing (Exploit-DB/PacketStorm change their markup periodically) or error handling would go completely undetected without tests.Checked against open PRs (no overlap)
Confirmed no overlap with any of the 50 open PRs (#123–#172):
search_exploit_dbtestssearch_packetstormtestsget_cwe_detailstestsfeat(cli): exploit-search) adds a CLI wrapper but no tool-level testsfeat(cli): cwe) adds a CLI wrapper but no tool-level testsTest results