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

Function failing

lib/cli/tests/test_run_usage.py:987–990  ·  view source on GitHub ↗
(command: list[str], **kwargs: Any)

Source from the content-addressed store, hash-verified

985
986def fail_project_scripts(monkeypatch: pytest.MonkeyPatch) -> None:
987 def failing(command: list[str], **kwargs: Any) -> None:
988 raise subprocess.CalledProcessError(
989 SCRIPT_EXIT_CODE, command, output=f"{SECRET} failed"
990 )
991
992 monkeypatch.setattr(subprocess, "run", failing)
993

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected