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

Method test_query_siliconflow

tests/test_llm_api.py:268–277  ·  view source on GitHub ↗
(self, mock_create_client)

Source from the content-addressed store, hash-verified

266 @unittest.skipIf(skip_llm_tests, skip_message)
267 @patch('tools.llm_api.create_llm_client')
268 def test_query_siliconflow(self, mock_create_client):
269 self.mock_openai_client.chat.completions.create.return_value = self.mock_siliconflow_response
270 mock_create_client.return_value = self.mock_openai_client
271 response = query_llm("Test prompt", provider="siliconflow")
272 self.assertEqual(response, "Test Siliconflow response")
273 self.mock_openai_client.chat.completions.create.assert_called_once_with(
274 model="deepseek-ai/DeepSeek-R1",
275 messages=[{"role": "user", "content": [{"type": "text", "text": "Test prompt"}]}],
276 temperature=0.7
277 )
278
279 @unittest.skipIf(skip_llm_tests, skip_message)
280 @patch('tools.llm_api.create_llm_client')

Callers

nothing calls this directly

Calls 1

query_llmFunction · 0.90

Tested by

no test coverage detected