(self, mock_openai)
| 188 | @unittest.skipIf(skip_llm_tests, skip_message) |
| 189 | @patch('tools.llm_api.OpenAI') |
| 190 | def test_create_siliconflow_client(self, mock_openai): |
| 191 | mock_openai.return_value = self.mock_openai_client |
| 192 | client = create_llm_client("siliconflow") |
| 193 | mock_openai.assert_called_once_with( |
| 194 | api_key='test-siliconflow-key', |
| 195 | base_url="https://api.siliconflow.cn/v1" |
| 196 | ) |
| 197 | self.assertEqual(client, self.mock_openai_client) |
| 198 | |
| 199 | @unittest.skipIf(skip_llm_tests, skip_message) |
| 200 | @patch('tools.llm_api.Anthropic') |
nothing calls this directly
no test coverage detected