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

Function fail_project_scripts

lib/cli/tests/test_run_usage.py:986–992  ·  view source on GitHub ↗
(monkeypatch: pytest.MonkeyPatch)

Source from the content-addressed store, hash-verified

984
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
994
995@pytest.mark.parametrize(

Calls

no outgoing calls

Tested by

no test coverage detected