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

Function fake_popen

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

Source from the content-addressed store, hash-verified

444 runs: list[_StartedRun] = []
445
446 def fake_popen(args, **kwargs):
447 if args != RUN_ARGV:
448 return real_popen(args, **kwargs)
449 runs.append(_StartedRun(args, kwargs, returncode, interrupts))
450 return runs[-1]
451
452 monkeypatch.setattr(subprocess, "Popen", fake_popen)
453 return runs

Callers

nothing calls this directly

Calls 2

_StartedRunClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected