MCPcopy Create free account
hub / github.com/grapeot/devin.cursorrules / test_create_siliconflow_client

Method test_create_siliconflow_client

tests/test_llm_api.py:190–197  ·  view source on GitHub ↗
(self, mock_openai)

Source from the content-addressed store, hash-verified

188 @unittest.skipIf(skip_llm_tests, skip_message)
189 @patch('tools.llm_api.OpenAI')
190 def test_create_siliconflow_client(self, mock_openai):
191 mock_openai.return_value = self.mock_openai_client
192 client = create_llm_client("siliconflow")
193 mock_openai.assert_called_once_with(
194 api_key='test-siliconflow-key',
195 base_url="https://api.siliconflow.cn/v1"
196 )
197 self.assertEqual(client, self.mock_openai_client)
198
199 @unittest.skipIf(skip_llm_tests, skip_message)
200 @patch('tools.llm_api.Anthropic')

Callers

nothing calls this directly

Calls 1

create_llm_clientFunction · 0.90

Tested by

no test coverage detected