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

Method _git_path

lib/cli/tests/deploy/test_deploy_main.py:1160–1168  ·  view source on GitHub ↗
(self, mock_input, mock_repository, mock_fetch_env)

Source from the content-addressed store, hash-verified

1158 # --- why a create failed (the Crew Deployment Failed span) ---------------
1159
1160 def _git_path(self, mock_input, mock_repository, mock_fetch_env):
1161 mock_fetch_env.return_value = {"ENV_VAR": "value"}
1162 mock_repository.return_value.origin_url.return_value = (
1163 "https://github.com/test/repo.git"
1164 )
1165 mock_repository.return_value.create_initial_commit_if_needed.return_value = (
1166 False
1167 )
1168 mock_input.return_value = ""
1169
1170 @staticmethod
1171 def _api_response(status_code: int, body: object) -> MagicMock:

Calls

no outgoing calls

Tested by

no test coverage detected