MCPcopy Create free account
hub / github.com/crewAIInc/crewAI / test_get_evaluation

Method test_get_evaluation

lib/cli/tests/test_plus_api.py:110–122  ·  view source on GitHub ↗
(self, mock_make_request)

Source from the content-addressed store, hash-verified

108
109 @patch("crewai_core.plus_api.PlusAPI._make_request")
110 def test_get_evaluation(self, mock_make_request):
111 mock_response = MagicMock()
112 mock_make_request.return_value = mock_response
113
114 response = self.api.get_evaluation("ev-1")
115
116 mock_make_request.assert_called_once_with(
117 "GET",
118 "/crewai_plus/api/v1/tracing/evaluations/ev-1",
119 params={"can_export": "1"},
120 timeout=30.0,
121 )
122 self.assertEqual(response, mock_response)
123
124 @patch("crewai_core.plus_api.PlusAPI._make_request")
125 def test_export_evaluation(self, mock_make_request):

Callers

nothing calls this directly

Calls 1

get_evaluationMethod · 0.45

Tested by

no test coverage detected