MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / test_non_opus_no_reasoning

Method test_non_opus_no_reasoning

tests/test_llm_client.py:29–38  ·  view source on GitHub ↗
(self, mock_litellm)

Source from the content-addressed store, hash-verified

27
28 @patch("harness.llms.client.litellm")
29 def test_non_opus_no_reasoning(self, mock_litellm):
30 mock_litellm.completion.return_value = MagicMock()
31 client = self._make_client()
32
33 client.completion(
34 model="claude-sonnet-4-6", messages=[{"role": "user", "content": "hi"}]
35 )
36
37 kwargs = mock_litellm.completion.call_args[1]
38 assert "reasoning_effort" not in kwargs
39
40 @patch("harness.llms.client.litellm")
41 def test_explicit_reasoning_effort_passed_through(self, mock_litellm):

Callers

nothing calls this directly

Calls 2

_make_clientMethod · 0.95
completionMethod · 0.80

Tested by

no test coverage detected