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

Method test_query_local

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

Source from the content-addressed store, hash-verified

305 @unittest.skipIf(skip_llm_tests, skip_message)
306 @patch('tools.llm_api.create_llm_client')
307 def test_query_local(self, mock_create_client):
308 mock_create_client.return_value = self.mock_openai_client
309 response = query_llm("Test prompt", provider="local")
310 self.assertEqual(response, "Test OpenAI response")
311 self.mock_openai_client.chat.completions.create.assert_called_once_with(
312 model="Qwen/Qwen2.5-32B-Instruct-AWQ",
313 messages=[{"role": "user", "content": [{"type": "text", "text": "Test prompt"}]}],
314 temperature=0.7
315 )
316
317 @unittest.skipIf(skip_llm_tests, skip_message)
318 @patch('tools.llm_api.create_llm_client')

Callers

nothing calls this directly

Calls 1

query_llmFunction · 0.90

Tested by

no test coverage detected