MCPcopy Index your code
hub / github.com/pyinvoke/invoke / _runner

Function _runner

tests/runners.py:67–76  ·  view source on GitHub ↗
(out="", err="", **kwargs)

Source from the content-addressed store, hash-verified

65
66
67def _runner(out="", err="", **kwargs):
68 klass = kwargs.pop("klass", _Dummy)
69 runner = klass(Context(config=Config(overrides=kwargs)))
70 if "exits" in kwargs:
71 runner.returncode = Mock(return_value=kwargs.pop("exits"))
72 out_file = BytesIO(out.encode())
73 err_file = BytesIO(err.encode())
74 runner.read_proc_stdout = out_file.read
75 runner.read_proc_stderr = err_file.read
76 return runner
77
78
79def _expect_platform_shell(shell):

Calls 3

ContextClass · 0.90
ConfigClass · 0.90
popMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…