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

Method test_query_error

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

Source from the content-addressed store, hash-verified

349 @unittest.skipIf(skip_llm_tests, skip_message)
350 @patch('tools.llm_api.create_llm_client')
351 def test_query_error(self, mock_create_client):
352 self.mock_openai_client.chat.completions.create.side_effect = Exception("Test error")
353 mock_create_client.return_value = self.mock_openai_client
354 response = query_llm("Test prompt")
355 self.assertIsNone(response)
356
357if __name__ == '__main__':
358 unittest.main()

Callers

nothing calls this directly

Calls 1

query_llmFunction · 0.90

Tested by

no test coverage detected