- Implemented comprehensive test suite for page controller - 37 unit tests covering: - Root endpoint (/) rendering index.html - Setup endpoint (/setup) rendering setup.html - Login endpoint (/login) rendering login.html - Queue endpoint (/queue) rendering queue.html - Loading endpoint (/loading) rendering loading.html - Template helper functions for context generation - Series context preparation and filtering - Template validation and listing - Series lookup by key - Filter series by missing episodes Coverage: - Page controller: 100% (19/19 statements) - Template helpers: 98.28% (42/42 statements, 15/16 branches) - Overall: Exceeds 85%+ target Test results: All 37 tests passing - Mocked render_template for controller tests - Mocked Request objects - Tested all template helper functions - Validated correct template names and titles passed
268 KiB
268 KiB