MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / test_get_for_model

Method test_get_for_model

tests/test_providers.py:86–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

84 assert "minimax/minimax-m2.5" in keyed
85
86 def test_get_for_model(self) -> None:
87 add_provider("deepseek", "sk-1")
88 cfg = load_providers()
89 entry = cfg.get_for_model("deepseek/deepseek-chat")
90 assert entry is not None
91 assert entry.name == "deepseek"
92 assert cfg.get_for_model("nonexistent/model") is None
93
94
95class TestSelectPreferred:

Callers

nothing calls this directly

Calls 3

add_providerFunction · 0.90
load_providersFunction · 0.90
get_for_modelMethod · 0.80

Tested by

no test coverage detected