test(cli): comprehensive test suite for manus-agent blast-radius subcommand - #121
Open
manus-use wants to merge 1 commit into
Open
test(cli): comprehensive test suite for manus-agent blast-radius subcommand#121manus-use wants to merge 1 commit into
manus-use wants to merge 1 commit into
Conversation
This was referenced Jul 19, 2026
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
Add a comprehensive CLI test suite for the
manus-agent blast-radiussubcommand._run_blast_radiusand_build_blast_radius_parserwere introduced in PR #63 (tool) and wired up as a CLI subcommand, but the execution layer had zero test coverage for the_run_blast_radiusfunction. The existingtest_dependency_blast_radius.py::TestCliParseronly covers parser flag parsing — not the actual execution path, output generation, error handling, ormain()dispatch.What this adds
tests/test_cli_blast_radius.py— 52 tests across 13 suites:TestBuildBlastRadiusParserTestRunBlastRadiusCveTextTestRunBlastRadiusCveJsonspec,cve_id,packageslist,summaryblock,blast_radiusfield)TestRunBlastRadiusPackageSpecrequests@2.28.0,npm:lodash@4.17.20) — text + JSON,cve_id=nullTestRunBlastRadiusNoPackagesTestRunBlastRadiusMaxPackages--max-packageslimits_enrich_packagecall count andtotal_packagesin JSON summaryTestRunBlastRadiusSortingTestRunBlastRadiusDeduplication_enrich_packagecalled exactly onceTestRunBlastRadiusOptionalFieldsdescription,latest_version, Mavenfull_idshown in text output when populatedTestRunBlastRadiusJsonTotalstotal_weekly_downloadsaggregated across packages;total_packagescorrectTestSubcommandsRegistry_SUBCOMMANDSmembership, type, and exact string matchTestMainDispatchBlastRadiusmain()routesblast-radiuscorrectly; passes--output,--max-packages, package spec; propagates non-zero rcTestRunBlastRadiusImportPath_run_blast_radius,_build_blast_radius_parser,_SUBCOMMANDSAll tests are fully mocked —
_fetch_nvd_affected,_fetch_osv_affected,_fetch_ghsa_affected, and_enrich_packageare patched. No real HTTP calls.Test counts
1210 passed, 3 deselected— full suite green.No-duplicate confirmation
Checked against all open and recently merged PRs before building. The following open PRs were reviewed to confirm no overlap:
#51, #53, #54, #58, #60, #64, #65, #67, #74, #75, #76, #77, #78, #79, #80, #82, #83, #85, #86, #87, #88, #89, #90, #96, #98, #100, #103, #104, #105, #106, #107, #108, #109, #110, #111, #112, #113, #114, #115, #116, #117, #118, #119, #120
No open or merged PR covers
_run_blast_radiusexecution tests.The existing
TestCliParserclass intest_dependency_blast_radius.pyonly tests_build_blast_radius_parser(flag parsing), not the execution path. This PR is strictly additive — a new file, no changes to source code.