- Removed class-based test structure
- Moved imports to top of file
- Added section dividers (============) between test groups
- Removed inline imports
- Followed same structure as test_serving_chat_sampling_params.py
- All tests are now standalone functions with proper docstrings
This aligns with the test style guide at docs/contributing/ci/tests_style.md
Co-authored-by: hsliuustc0106 <222337142+hsliuustc0106@users.noreply.github.com>
Replaced integration-style tests with focused unit tests that:
- Test the modality filtering logic directly without full method calls
- Don't require vllm types to be instantiated
- Focus on the specific code changes made in the fix
- Run without dependencies on the full serving infrastructure
This resolves CI test failures while still providing test coverage
for the modalities filtering logic.
Co-authored-by: hsliuustc0106 <222337142+hsliuustc0106@users.noreply.github.com>
Added comprehensive unit tests that verify:
- Text-only modality filters out audio outputs
- Audio-only modality filters out text but preserves usage info
- Multiple modalities includes all requested outputs
- No modalities parameter includes all outputs
These tests use mocks to run quickly without requiring full model loading.
Co-authored-by: hsliuustc0106 <222337142+hsliuustc0106@users.noreply.github.com>