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

Function fake_popen

lib/cli/tests/test_cli.py:453–457  ·  view source on GitHub ↗
(args, **kwargs)

Source from the content-addressed store, hash-verified

451 runs: list[_StartedRun] = []
452
453 def fake_popen(args, **kwargs):
454 if args != RUN_ARGV:
455 return real_popen(args, **kwargs)
456 runs.append(_StartedRun(args, kwargs, returncode, interrupts))
457 return runs[-1]
458
459 monkeypatch.setattr(subprocess, "Popen", fake_popen)
460 return runs

Callers

nothing calls this directly

Calls 2

_StartedRunClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected