Commit Graph
3 Commits
Author SHA1 Message Date
copilot-swe-agent[bot]andhsliuustc0106 8afbc59636 Refactor tests to match project style guidelines
- 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>
2026-01-19 06:17:49 +00:00
copilot-swe-agent[bot]andhsliuustc0106 3dd27e4365 Simplify unit tests to avoid vllm dependency issues
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>
2026-01-19 04:45:15 +00:00
copilot-swe-agent[bot]andhsliuustc0106 f227f28d19 Add unit tests for modalities filtering
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>
2026-01-19 04:17:17 +00:00