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

Method __init__

tests/_util.py:111–117  ·  view source on GitHub ↗
(self, out="", err="", exit=0, isatty=None, autostart=True)

Source from the content-addressed store, hash-verified

109
110class MockSubprocess:
111 def __init__(self, out="", err="", exit=0, isatty=None, autostart=True):
112 self.out_file = BytesIO(out.encode())
113 self.err_file = BytesIO(err.encode())
114 self.exit = exit
115 self.isatty = isatty
116 if autostart:
117 self.start()
118
119 def start(self):
120 # Start patchin'

Callers 1

__init__Method · 0.45

Calls 1

startMethod · 0.95

Tested by

no test coverage detected