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

Function failing_run

lib/cli/tests/test_install_command.py:20–23  ·  view source on GitHub ↗
(*args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

18 """A failed `uv sync` must not be reported as a successful install."""
19
20 def failing_run(*args: Any, **kwargs: Any) -> None:
21 raise subprocess.CalledProcessError(
22 2, ["uv", "sync"], output="No solution found"
23 )
24
25 monkeypatch.setattr(install_module.subprocess, "run", failing_run)
26 monkeypatch.setattr(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected