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

Function test_is_git_not_installed

lib/cli/tests/test_git.py:27–33  ·  view source on GitHub ↗
(fp)

Source from the content-addressed store, hash-verified

25
26
27def test_is_git_not_installed(fp):
28 fp.register(["git", "--version"], returncode=1)
29
30 with pytest.raises(
31 ValueError, match="Git is not installed or not found in your PATH."
32 ):
33 Repository(path=".")
34
35
36def test_fetch_failure_raises_value_error(fp):

Callers

nothing calls this directly

Calls 2

RepositoryClass · 0.90
registerMethod · 0.45

Tested by

no test coverage detected