Will Miao
761108bfd1
fix(download): restore aria2 resume lifecycle
2026-04-20 09:52:48 +08:00
Will Miao
1c530ea013
feat(download): add experimental aria2 backend
2026-04-19 21:46:09 +08:00
Will Miao
3b001a6cd8
fix(tests): update tests to match current download implementation
...
- Remove calculate_sha256 mocking from download_manager tests since
SHA256 now comes from API metadata (not recalculated during download)
- Update chunk_size assertion from 4MB to 16MB in downloader config test
2026-03-26 18:00:04 +08:00
Will Miao
8e30008b29
test: complete Phase 3 of backend testing improvement plan
...
Centralize test fixtures:
- Add mock_downloader fixture for configurable downloader mocking
- Add mock_websocket_manager fixture for WebSocket broadcast recording
- Add reset_singletons autouse fixture for test isolation
- Consolidate singleton cleanup in conftest.py
Split large test files:
- test_download_manager.py (1422 lines) → 3 focused files:
- test_download_manager_basic.py: 12 core functionality tests
- test_download_manager_error.py: 15 error handling tests
- test_download_manager_concurrent.py: 6 advanced scenario tests
- test_cache_paths.py (530 lines) → 3 focused files:
- test_cache_paths_resolution.py: 11 path resolution tests
- test_cache_paths_validation.py: 9 legacy validation tests
- test_cache_paths_migration.py: 9 migration scenario tests
Update documentation:
- Mark all Phase 3 checklist items as complete
- Add Phase 3 completion summary with test results
All 894 tests passing.
2026-02-11 11:10:31 +08:00