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

Method test_add_provider

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

Source from the content-addressed store, hash-verified

30 assert cfg.keyed_models() == set()
31
32 def test_add_provider(self) -> None:
33 cfg = add_provider("deepseek", "sk-test-key-123")
34 assert "deepseek" in cfg.providers
35 entry = cfg.providers["deepseek"]
36 assert entry.api_key == "sk-test-key-123"
37 assert entry.base_url == "https://api.deepseek.com/v1"
38 assert "deepseek/deepseek-chat" in entry.models
39
40 def test_add_provider_with_plan(self) -> None:
41 cfg = add_provider("minimax", "eyJ-test", plan="coding-plan")

Callers

nothing calls this directly

Calls 1

add_providerFunction · 0.90

Tested by

no test coverage detected