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

Method test_create_local_client

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

Source from the content-addressed store, hash-verified

214 @unittest.skipIf(skip_llm_tests, skip_message)
215 @patch('tools.llm_api.OpenAI')
216 def test_create_local_client(self, mock_openai):
217 mock_openai.return_value = self.mock_openai_client
218 client = create_llm_client("local")
219 mock_openai.assert_called_once_with(
220 base_url="http://192.168.180.137:8006/v1",
221 api_key="not-needed"
222 )
223 self.assertEqual(client, self.mock_openai_client)
224
225 @unittest.skipIf(skip_llm_tests, skip_message)
226 def test_create_invalid_provider(self):

Callers

nothing calls this directly

Calls 1

create_llm_clientFunction · 0.90

Tested by

no test coverage detected