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

Function fake_run

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

Source from the content-addressed store, hash-verified

156 calls: list[tuple[list[str], dict[str, str]]] = []
157
158 def fake_run(command: list[str], **kwargs: Any) -> subprocess.CompletedProcess[str]:
159 calls.append((command, kwargs.get("env") or {}))
160 return subprocess.CompletedProcess(command, 0)
161
162 monkeypatch.setattr(subprocess, "run", fake_run)
163 return calls

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected