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
..
2025-10-03 18:34:52 +08:00
2026-01-27 22:51:09 +08:00
2026-01-26 13:51:45 +08:00
2026-01-30 07:48:31 +08:00
2026-02-11 10:29:21 +08:00
2025-10-11 17:38:20 +08:00
2026-01-26 23:24:16 +08:00
2025-09-24 15:39:52 +08:00
2025-11-08 11:45:31 +08:00
2025-09-24 23:22:32 +08:00
2025-10-04 10:38:06 +08:00
2026-02-07 23:27:01 +08:00
2025-10-11 20:08:42 +08:00