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

Method test_query_deepseek

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

Source from the content-addressed store, hash-verified

254 @unittest.skipIf(skip_llm_tests, skip_message)
255 @patch('tools.llm_api.create_llm_client')
256 def test_query_deepseek(self, mock_create_client):
257 mock_create_client.return_value = self.mock_openai_client
258 response = query_llm("Test prompt", provider="deepseek")
259 self.assertEqual(response, "Test OpenAI response")
260 self.mock_openai_client.chat.completions.create.assert_called_once_with(
261 model="deepseek-chat",
262 messages=[{"role": "user", "content": [{"type": "text", "text": "Test prompt"}]}],
263 temperature=0.7
264 )
265
266 @unittest.skipIf(skip_llm_tests, skip_message)
267 @patch('tools.llm_api.create_llm_client')

Callers

nothing calls this directly

Calls 1

query_llmFunction · 0.90

Tested by

no test coverage detected