[claude] Add unit tests for cascade.py (#1138) #1150

Merged
claude merged 1 commits from claude/issue-1138 into main 2026-03-23 18:47:29 +00:00

1 Commits

Author SHA1 Message Date
Alexander Whitestone
0f98bc6f60 test: add unit markers and expand cascade router tests to 73 tests (#1138)
Some checks failed
Tests / lint (pull_request) Failing after 16s
Tests / test (pull_request) Has been skipped
Add @pytest.mark.unit to all test classes in test_router_cascade.py so
they are picked up by `tox -e unit`. Expand coverage with new test classes
for _detect_content_type, _transform_messages_for_ollama, Provider
capability methods, _get_fallback_model, cascade_tier filtering, the
generate_with_image convenience method, get_router() singleton, and
_is_provider_available circuit-breaker transitions.

Fixes #1138

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 14:44:55 -04:00