Files
Aniworld/tests/unit
Lukas ab1836575e Task 6: Page Controller Tests - 37 tests, 100% coverage
- 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
2026-01-26 18:45:21 +01:00
..
2025-12-04 19:22:42 +01:00
2025-12-10 21:12:34 +01:00
2025-12-10 21:12:34 +01:00
2025-12-04 19:22:42 +01:00
2025-10-23 19:00:49 +02:00
2025-10-22 09:20:35 +02:00
2025-11-19 21:20:22 +01:00
2025-10-22 09:20:35 +02:00