4731fd644a
fix(tests): resolve 13 failing unit tests
...
- Use dynamic APP_VERSION instead of hardcoded v1.3.6 in:
test_template_helpers, test_health, test_page_controller
- Add unresolved_folders to EXPECTED_TABLES in database/init.py
- Fix shallow copy bug in test_serie_scanner.py episodeDict comparison
- Update test_schema_constants to expect 6 tables instead of 5
2026-06-11 08:36:41 +02:00
25dc66fec3
Make retry handlers static methods
...
Convert handle_network_failure and handle_download_failure from instance methods to static methods. Hardcode retry params (max_retries, delays) instead of using instance state. Improves testability and removes implicit dependencies.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-06-04 22:29:59 +02:00
69c2fd01f9
chore: bump version to 1.0.1
2026-05-14 17:30:13 +02:00
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