(self, mock_create_client)
| 266 | @unittest.skipIf(skip_llm_tests, skip_message) |
| 267 | @patch('tools.llm_api.create_llm_client') |
| 268 | def test_query_siliconflow(self, mock_create_client): |
| 269 | self.mock_openai_client.chat.completions.create.return_value = self.mock_siliconflow_response |
| 270 | mock_create_client.return_value = self.mock_openai_client |
| 271 | response = query_llm("Test prompt", provider="siliconflow") |
| 272 | self.assertEqual(response, "Test Siliconflow response") |
| 273 | self.mock_openai_client.chat.completions.create.assert_called_once_with( |
| 274 | model="deepseek-ai/DeepSeek-R1", |
| 275 | messages=[{"role": "user", "content": [{"type": "text", "text": "Test prompt"}]}], |
| 276 | temperature=0.7 |
| 277 | ) |
| 278 | |
| 279 | @unittest.skipIf(skip_llm_tests, skip_message) |
| 280 | @patch('tools.llm_api.create_llm_client') |
nothing calls this directly
no test coverage detected