Add tests.

This commit is contained in:
Edward Betts 2026-02-01 14:02:53 +00:00
parent e80f511155
commit a7d4bc4ae9
10 changed files with 915 additions and 418 deletions

View file

@ -8,7 +8,9 @@ This is a Python CLI tool for Debian package maintainers. It tracks packages wit
## Architecture
- Single-file CLI application using Click for command handling
- `debian_todo/` - Python package with core logic
- `todo` - CLI entry point script
- `tests/` - pytest test suite
- Rich library for terminal output (tables and formatting)
- python-debian library for parsing APT Sources files
- JSON-based caching for performance
@ -36,7 +38,12 @@ This is a Python CLI tool for Debian package maintainers. It tracks packages wit
## Testing
No test suite. Manual testing with:
Run tests with pytest:
```bash
PYTHONPATH=. pytest tests/ -v
```
Manual testing:
```bash
./todo list
./todo list --show-prerelease
@ -60,5 +67,6 @@ System packages (Debian):
- python3-click
- python3-debian
- python3-rich
- python3-pytest (for testing)
No pip/venv setup; uses system Python.