Commit graph

4 commits

Author SHA1 Message Date
Yax
7b1264d12c Add comprehensive unit tests for core functions
Added 62 unit tests (441 lines) covering high-priority functions:
- test_parse_headers.py: 9 tests for header parsing logic
- test_render.py: 15 tests for template engine
- test_strip_html_tags.py: 18 tests for HTML tag removal
- test_strip_tags_and_truncate.py: 19 tests for summary generation

All tests pass and cover edge cases, error conditions, and real-world scenarios.
2026-01-07 14:49:27 +01:00
Yax
3297ce5e67 Improve slugify function, add tests, and enhance Makefile
Applied improvements from feature-code-quality branch:
- Refactored slugify() for better readability with inline comments
- Renamed log() parameter *args to *log_args (avoid shadowing built-in)
- Added comprehensive unit tests for slugify function
- Enhanced Makefile with typecheck and test targets
- Updated build target to run type checks and tests before Docker build

All tests pass and type checking succeeds.
2026-01-07 14:12:12 +01:00
Yax
22a8fd6ba8 Remove unit tests 2025-04-02 13:36:39 +02:00
Yax
ac45ac1b6c init 2019-08-17 16:48:52 +02:00