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

Method test_create_anthropic_client

tests/test_llm_api.py:201–205  ·  view source on GitHub ↗
(self, mock_anthropic)

Source from the content-addressed store, hash-verified

199 @unittest.skipIf(skip_llm_tests, skip_message)
200 @patch('tools.llm_api.Anthropic')
201 def test_create_anthropic_client(self, mock_anthropic):
202 mock_anthropic.return_value = self.mock_anthropic_client
203 client = create_llm_client("anthropic")
204 mock_anthropic.assert_called_once_with(api_key='test-anthropic-key')
205 self.assertEqual(client, self.mock_anthropic_client)
206
207 @unittest.skipIf(skip_llm_tests, skip_message)
208 @patch('tools.llm_api.genai')

Callers

nothing calls this directly

Calls 1

create_llm_clientFunction · 0.90

Tested by

no test coverage detected