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

Function fake_run

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

Source from the content-addressed store, hash-verified

97 calls: list[tuple[list[str], dict[str, str]]] = []
98
99 def fake_run(command: list[str], **kwargs: Any) -> subprocess.CompletedProcess[str]:
100 calls.append((command, dict(kwargs.get("env") or {})))
101 return subprocess.CompletedProcess(command, 0)
102
103 monkeypatch.setattr(subprocess, "run", fake_run)
104 return calls

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected