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

Method test_create_crew

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

Source from the content-addressed store, hash-verified

284
285 @patch("crewai_core.plus_api.PlusAPI._make_request")
286 def test_create_crew(self, mock_make_request):
287 payload = {"name": "test_crew"}
288 self.api.create_crew(payload)
289 mock_make_request.assert_called_once_with(
290 "POST", "/crewai_plus/api/v1/crews", json=payload
291 )
292
293 @patch("crewai_cli.plus_api.PlusAPI._make_multipart_request")
294 def test_create_crew_from_zip(self, mock_make_multipart_request):

Callers

nothing calls this directly

Calls 1

create_crewMethod · 0.45

Tested by

no test coverage detected