Will Miao
d2f955266d
fix(types): resolve pre-existing basedpyright errors in tests
...
Fix ~790 basedpyright errors across the test suite:
- Type stub subclasses of real production classes with super().__init__()
- Add missing generic type arguments and Dict[str, Any] annotations
- Add None guards before subscript/member access
- Adapt tests to production API changes (removed dead handlers,
PersistentModelCache.get_default, _i18n_filter_added location)
2026-08-08 20:12:59 +08:00
Will Miao
7c8dc57d55
fix(security): use abspath instead of realpath in containment checks to support symlinks ( #1028 )
2026-07-23 07:06:41 +08:00
Will Miao
ea80c2224c
fix(download): prevent path traversal in download template resolution ( #1028 )
2026-07-20 21:08:43 +08:00
Will Miao
a1dff6dd47
fix(download): auto fetch example images after model download
2026-04-21 22:48:06 +08:00
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
d36b16c213
feat(settings): skip previously downloaded model versions
2026-04-03 19:01:19 +08:00
Will Miao
a5191414cc
feat(download): add configurable base model download exclusions
2026-03-26 23:07:12 +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