ragflow/test/integration_test/services
hsparks.codes c81ca967e6 test: Add integration tests and explain testing strategy
Response to @KevinHuSh's review question about mocks.

Added:
- Integration tests (10 tests) with real CheckpointService and database
- Documentation explaining unit tests vs integration tests
- Real-world resume scenario test
- Comments in unit tests explaining mock usage

Integration tests cover:
- Actual database operations
- Complete checkpoint lifecycle
- Resume from crash scenario
- Retry logic with real state
- Progress calculation with persistence

Unit tests (mocked) remain for:
- Fast CI/CD feedback (0.04s)
- Interface validation
- No database dependencies

Both test types are valuable and complement each other.
2025-12-03 10:38:13 +01:00
..
test_checkpoint_service_integration.py test: Add integration tests and explain testing strategy 2025-12-03 10:38:13 +01:00