(self, mock_create_client)
| 329 | @unittest.skipIf(skip_llm_tests, skip_message) |
| 330 | @patch('tools.llm_api.create_llm_client') |
| 331 | def test_query_o1_model(self, mock_create_client): |
| 332 | mock_create_client.return_value = self.mock_openai_client |
| 333 | response = query_llm("Test prompt", model="o1") |
| 334 | self.assertEqual(response, "Test OpenAI response") |
| 335 | self.mock_openai_client.chat.completions.create.assert_called_once_with( |
| 336 | model="o1", |
| 337 | messages=[{"role": "user", "content": [{"type": "text", "text": "Test prompt"}]}], |
| 338 | response_format={"type": "text"}, |
| 339 | reasoning_effort="low" |
| 340 | ) |
| 341 | |
| 342 | @unittest.skipIf(skip_llm_tests, skip_message) |
| 343 | @patch('tools.llm_api.create_llm_client') |
nothing calls this directly
no test coverage detected