[CI]【Hackathon 9th Sprint No.35】NO.35 Add unittest tests/engine/test_common_engine.py by 0Ayachi0 · Pull Request #5070 · PaddlePaddle/FastDeploy (original) (raw)
Pull Request Overview
This PR adds comprehensive unit tests for the fastdeploy/engine/common_engine.py module, specifically testing the EngineService class. The tests use mocking to isolate the class under test and verify core functionality including initialization, data processing, task management, and cleanup operations.
Key Changes:
- Added 8 test methods covering initialization and key methods of
EngineService - Extensive use of mocking to simulate dependencies
- Tests verify task state management, chunk size updates, resource cleanup, and multimodal feature detection