Files
Aniworld/tests/unit
Lukas a1865a41c6 refactor: Complete ImageDownloader refactoring and fix all unit tests
- Refactored ImageDownloader to use persistent session pattern
- Changed default timeout from 60s to 30s to match test expectations
- Added session management with context manager protocol
- Fixed _get_session() to handle both real and mock sessions
- Fixed download_all_media() to return None for missing URLs

Test fixes:
- Updated all test mocks to use proper async context manager protocol
- Fixed validate_image tests to use public API instead of non-existent private method
- Updated test fixture to use smaller min_file_size for test images
- Fixed retry tests to use proper aiohttp.ClientResponseError with RequestInfo
- Corrected test assertions to match actual behavior (404 returns False, not exception)

All 20 ImageDownloader unit tests now passing (100%)
2026-01-15 19:38:48 +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-12-04 19:22:42 +01:00
2025-12-10 20:55:09 +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