[kimi] test: add comprehensive tests for multimodal.py (#658) #694

Merged
kimi merged 1 commits from kimi/issue-658 into main 2026-03-21 04:00:54 +00:00
Collaborator

Fixes #658

Summary

  • Add 40+ tests covering all public and internal APIs of infrastructure.models.multimodal
  • Test coverage includes: ModelCapability enum, ModelInfo dataclass, MultiModalManager (init, refresh, capability detection, fallback chains, model pulling, content-type routing), known model capabilities table, default fallback chains, and all module-level convenience functions
  • All Ollama HTTP calls are mocked — no network access required

Verification

tox -e unit -- tests/infrastructure/test_multimodal.py -v
Fixes #658 ## Summary - Add 40+ tests covering all public and internal APIs of `infrastructure.models.multimodal` - Test coverage includes: `ModelCapability` enum, `ModelInfo` dataclass, `MultiModalManager` (init, refresh, capability detection, fallback chains, model pulling, content-type routing), known model capabilities table, default fallback chains, and all module-level convenience functions - All Ollama HTTP calls are mocked — no network access required ## Verification ``` tox -e unit -- tests/infrastructure/test_multimodal.py -v ```
kimi added 1 commit 2026-03-21 04:00:46 +00:00
test: add comprehensive tests for multimodal.py (#658)
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
c4167a9466
Cover ModelCapability enum, ModelInfo dataclass, MultiModalManager
init/refresh, capability detection (exact/base-name/unknown), fallback
chain configuration, model pulling with fallback, content-type routing,
and module-level convenience functions.

Fixes #658

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
kimi merged commit cc30bdb391 into main 2026-03-21 04:00:54 +00:00
kimi deleted branch kimi/issue-658 2026-03-21 04:00:54 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#694