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

Function test_fetch_failure_raises_value_error

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

Source from the content-addressed store, hash-verified

34
35
36def test_fetch_failure_raises_value_error(fp):
37 fp.register(["git", "--version"], stdout="git version 2.30.0\n")
38 fp.register(["git", "rev-parse", "--is-inside-work-tree"], stdout="true\n")
39 fp.register(["git", "fetch"], returncode=128, stderr="remote unavailable\n")
40
41 with pytest.raises(
42 ValueError,
43 match=r"Git fetch failed with exit code 128 for command \['git', 'fetch'\]: remote unavailable",
44 ):
45 Repository(path=".")
46
47
48def test_status(fp, repository):

Callers

nothing calls this directly

Calls 2

RepositoryClass · 0.90
registerMethod · 0.45

Tested by

no test coverage detected