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

Function test_get_agent

lib/cli/tests/test_plus_api.py:521–531  ·  view source on GitHub ↗
(mock_make_request)

Source from the content-addressed store, hash-verified

519
520@patch("crewai_core.plus_api.PlusAPI._make_request")
521def test_get_agent(mock_make_request):
522 api = PlusAPI("test_api_key")
523 mock_response = MagicMock()
524 mock_make_request.return_value = mock_response
525
526 response = api.get_agent("test_agent_handle")
527
528 mock_make_request.assert_called_once_with(
529 "GET", "/crewai_plus/api/v1/agents/test_agent_handle"
530 )
531 assert response == mock_response
532
533
534@patch("crewai_core.plus_api.PlusAPI._make_request")

Callers

nothing calls this directly

Calls 2

get_agentMethod · 0.95
PlusAPIClass · 0.90

Tested by

no test coverage detected