Add comprehensive CLI path tests and fix remaining issues

Added 18 new tests covering all aspects of CLI path corrections:
- Docstring/usage examples (5 tests)
- Print statements (3 tests)
- Subprocess calls (1 test)
- Documentation files (3 tests)
- Help output functionality (2 tests)
- Script executability (4 tests)

All tests verify that:
1. Scripts can be executed with cli/ prefix
2. Usage examples show correct paths
3. Print statements guide users correctly
4. No old hardcoded paths remain
5. Documentation is consistent

Fixed additional issues found by tests:
- cli/enhance_skill.py: Fixed 4 more occurrences in docstring and error message
- cli/package_skill.py: Fixed 1 occurrence in help epilog

Test Results:
- Total tests: 118 (100 existing + 18 new)
- All tests passing: 100%
- Coverage: CLI paths, scraper features, config validation, integration, MCP server

Related: PR #145
This commit is contained in:
yusyus
2025-10-22 21:45:51 +03:00
parent 581dbc792d
commit c03186574d
3 changed files with 312 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ Examples:
python3 cli/package_skill.py output/react/ --no-open
# Get help
python3 package_skill.py --help
python3 cli/package_skill.py --help
"""
)