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

Method _git_path

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

Source from the content-addressed store, hash-verified

1142 # --- why a create failed (the Crew Deployment Failed span) ---------------
1143
1144 def _git_path(self, mock_input, mock_repository, mock_fetch_env):
1145 mock_fetch_env.return_value = {"ENV_VAR": "value"}
1146 mock_repository.return_value.origin_url.return_value = (
1147 "https://github.com/test/repo.git"
1148 )
1149 mock_repository.return_value.create_initial_commit_if_needed.return_value = (
1150 False
1151 )
1152 mock_input.return_value = ""
1153
1154 @staticmethod
1155 def _api_response(status_code: int, body: object) -> MagicMock:

Calls

no outgoing calls

Tested by

no test coverage detected