test(cli): comprehensive test suite for manus-agent history subcommand (+39 tests) - #132
Open
manus-use wants to merge 1 commit into
Open
test(cli): comprehensive test suite for manus-agent history subcommand (+39 tests)#132manus-use wants to merge 1 commit into
manus-use wants to merge 1 commit into
Conversation
This was referenced Jul 22, 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
Adds a comprehensive test suite for the
manus-agent historysubcommand, which previously had zero test coverage despite having meaningful logic (text/JSON output, filtering, clearing, ordering, malformed data handling).What's tested (39 tests)
Text output (6 tests)
JSON output (3 tests)
--limit(4 tests)--limit 0shows all entries--grep(5 tests)--limit--clear(2 tests)Empty/missing states (3 tests)
Malformed JSONL handling (3 tests)
_append_historyhelper (6 tests)Ordering (2 tests)
Edge cases (5 tests)
--format textFiles changed
tests/test_cli_history.pyTest results
1197 passed (baseline 1158 + 39 new), 0 failures. Ruff clean.
Duplicate check
Checked all open PRs (#64–#131) and merged PRs (#39–#102) — none cover
historysubcommand tests. PR #123 covers_run_analyze/_run_remediate/_run_discovertests (different subcommands). PR #121 coversblast-radiustests. PR #120 coversosvtests. This is the first test suite forhistory.