Add tests.
This commit is contained in:
parent
e80f511155
commit
a7d4bc4ae9
10 changed files with 915 additions and 418 deletions
12
AGENTS.md
12
AGENTS.md
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue