feat(cli): enhanced summary, graceful Ctrl+C, integration tests (closes #9)

Summary output now lists each failed book (ISBN + title + reason)
and each skipped book (ISBN + title) in both plain-text and rich/TTY
formats. Ctrl+C produces a clean shutdown message with exit code 130
instead of a Python traceback. Three integration tests exercise the
full run() pipeline: happy path, mixed results, and fatal auth failure.

12 new tests (168 total), 15/15 acceptance criteria met.
This commit is contained in:
AlexKucera committed 2026-06-03 15:00:27 +02:00
1 parent 351ded2478
commit 4aaae68a2e
7 files changed
+706 -128

No files matched your search

+9
View File
@@ -36,6 +36,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
cleanup, config toggle behavior, failure handling, and directory layout
(134 total)
- Enhanced summary: failed books listed with ISBN/title/reason, skipped
books listed with ISBN/title; both plain-text and rich/TTY reporters
- Graceful Ctrl+C handling: clean shutdown message instead of traceback,
exit code 130 (standard Unix SIGINT convention)
- 3 integration tests exercising full run() pipeline: happy path,
mixed result (download/skip/fail), fatal auth failure
- 12 new tests covering enhanced summary formatting, exit code semantics,
graceful shutdown, and integration scenarios (168 total)
### Fixed
- Library endpoint key mismatch: API returns "audiobooks" not "books"
- M4B endpoint key mismatch: API returns "m4b_url" not "url"