[loop-generated] [test-coverage] Tests for multimodal.py (579 lines, zero coverage) #658

Closed
opened 2026-03-20 23:13:12 +00:00 by Timmy · 1 comment
Owner

Problem

Split from #648. src/infrastructure/models/multimodal.py has 579 lines and zero test coverage.

Scope

File to test: src/infrastructure/models/multimodal.py
Test file: tests/infrastructure/test_multimodal.py

What to cover:

  1. Main inference paths with mocked backends
  2. Error handling for failed API calls
  3. Content type detection and routing
  4. Response formatting

Verification

tox -e unit -- tests/infrastructure/test_multimodal.py -v
## Problem Split from #648. `src/infrastructure/models/multimodal.py` has 579 lines and zero test coverage. ## Scope **File to test:** `src/infrastructure/models/multimodal.py` **Test file:** `tests/infrastructure/test_multimodal.py` ### What to cover: 1. Main inference paths with mocked backends 2. Error handling for failed API calls 3. Content type detection and routing 4. Response formatting ## Verification ``` tox -e unit -- tests/infrastructure/test_multimodal.py -v ```
kimi was assigned by Timmy 2026-03-21 01:57:07 +00:00
Collaborator

PR created with 40+ tests for multimodal.py. Covers ModelCapability enum, ModelInfo dataclass, MultiModalManager (init, refresh, capability detection, fallback chains, model pulling, content-type routing), known capabilities table, and all convenience functions. All tests pass, lint clean.

PR created with 40+ tests for `multimodal.py`. Covers ModelCapability enum, ModelInfo dataclass, MultiModalManager (init, refresh, capability detection, fallback chains, model pulling, content-type routing), known capabilities table, and all convenience functions. All tests pass, lint clean.
kimi closed this issue 2026-03-21 04:00:54 +00:00
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#658