Commit 2544533
feat: comprehensive CLI testing and fetch functionality fixes
- Add comprehensive CLI command and subcommand tests (108 tests total)
- 89 tests for all CLI commands, subcommands, parameters, and options
- 19 tests for CLI option definitions and validation
- Tests for main commands: version, doctor, upgrade/install, uninstall, launch
- Tests for config commands: validate, list, set, unset, show
- Tests for all subcommand groups: skill, agent, plugin, mcp, extensions, prompt
- Fix critical tuple unpacking bug in base.py fetch functionality
- Fixed with git_repo.clone() as (temp_dir, actual_branch) instead of as temp_dir
- Bug was introduced in last commit (4740d6e) during unified fetching framework
- Improve error handling in repository.py clone method
- Better RuntimeError instead of re-raising CalledProcessError when all branches fail
- Simplified cleanup logic to always call rmtree with ignore_errors
- Add regression tests to prevent future tuple unpacking issues
- Test clone method returns correct tuple structure
- Integration test for proper tuple unpacking in fetchers
- Fix test mocking issues in parallel fetching tests
- Corrected as_completed mocking to handle dictionary iteration properly
- Verify all fetch commands work correctly
- skill fetch: ✅ Found 1323 skills
- agent fetch: ✅ Found 1355 agents
- plugin marketplace add: ✅ Working with proper validation
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 4740d6e commit 2544533
7 files changed
Lines changed: 884 additions & 15 deletions
File tree
- code_assistant_manager/fetching
- tests
- unit/test_fetching
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | | - | |
78 | | - | |
| 78 | + | |
0 commit comments