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

Method test_crew_by_name

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

Source from the content-addressed store, hash-verified

415
416 @patch("crewai_core.plus_api.PlusAPI._make_request")
417 def test_crew_by_name(self, mock_make_request):
418 self.api.crew_by_name("test_project")
419 mock_make_request.assert_called_once_with(
420 "GET", "/crewai_plus/api/v1/crews/by-name/test_project/logs/deployment"
421 )
422
423 self.api.crew_by_name("test_project", "custom_log")
424 mock_make_request.assert_called_with(
425 "GET", "/crewai_plus/api/v1/crews/by-name/test_project/logs/custom_log"
426 )
427
428 @patch("crewai_core.plus_api.PlusAPI._make_request")
429 def test_crew_by_uuid(self, mock_make_request):

Callers

nothing calls this directly

Calls 1

crew_by_nameMethod · 0.80

Tested by

no test coverage detected