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

Method test_create_models_evaluation

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

Source from the content-addressed store, hash-verified

65
66 @patch("crewai_core.plus_api.PlusAPI._make_request")
67 def test_create_models_evaluation(self, mock_make_request):
68 mock_response = MagicMock()
69 mock_make_request.return_value = mock_response
70
71 response = self.api.create_models_evaluation(
72 ["openai/gpt-4o-mini", "anthropic/claude-haiku-4-5"],
73 project_id="proj-1",
74 eval_config="// ours\n{}",
75 deployment_id="dep-1",
76 )
77
78 mock_make_request.assert_called_once_with(
79 "POST",
80 "/crewai_plus/api/v1/tracing/evaluations",
81 json={
82 "kind": "models",
83 "project_id": "proj-1",
84 "models": ["openai/gpt-4o-mini", "anthropic/claude-haiku-4-5"],
85 "eval_config": "// ours\n{}",
86 "deployment_id": "dep-1",
87 },
88 timeout=120.0,
89 )
90 self.assertEqual(response, mock_response)
91
92 @patch("crewai_core.plus_api.PlusAPI._make_request")
93 def test_create_models_evaluation_sends_only_what_it_was_given(

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected