Will Miao
|
85e511d81c
|
feat(testing): implement Phase 4 advanced testing
- Add Hypothesis property-based tests (19 tests)
- Add Syrupy snapshot tests (7 tests)
- Add pytest-benchmark performance tests (11 tests)
- Fix Hypothesis plugin compatibility by creating MockModule class
- Update pytest.ini to exclude .hypothesis directory
- Add .hypothesis/ to .gitignore
- Update requirements-dev.txt with testing dependencies
- Mark Phase 4 complete in backend-testing-improvement-plan.md
All 947 tests passing.
|
2026-02-11 11:58:28 +08:00 |
|
Will Miao
|
25e6d72c4f
|
test(backend): Phase 1 - Improve testing infrastructure and add error path tests
## Changes
### pytest-asyncio Integration
- Add pytest-asyncio>=0.21.0 to requirements-dev.txt
- Update pytest.ini with asyncio_mode=auto and fixture loop scope
- Remove custom pytest_pyfunc_call handler from conftest.py
- Add @pytest.mark.asyncio to 21 async test functions
### Error Path Tests
- Create test_downloader_error_paths.py with 19 new tests covering:
- DownloadStreamControl state management (6 tests)
- Downloader configuration and initialization (4 tests)
- DownloadProgress dataclass validation (1 test)
- Custom exception handling (2 tests)
- Authentication header generation (3 tests)
- Session management (3 tests)
### Documentation
- Update backend-testing-improvement-plan.md with Phase 1 completion status
## Test Results
- All 458 service tests pass
- No regressions introduced
Relates to backend testing improvement plan Phase 1
|
2026-02-11 10:29:21 +08:00 |
|
pixelpaws
|
285428ad3a
|
fix(portable): use project root for settings storage
|
2025-11-02 09:07:57 +08:00 |
|
pixelpaws
|
21772feadd
|
refactor(routes): extract route utilities into services
|
2025-09-21 23:34:46 +08:00 |
|
Will Miao
|
1022b07f64
|
feat: enhance model metadata provider with import error handling and mock setup for tests
|
2025-09-21 19:57:49 +08:00 |
|