MCPcopy Create free account
hub / github.com/AstrBotDevs/AstrBot / _FakePopen

Class _FakePopen

tests/test_local_shell_component.py:12–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12class _FakePopen:
13 def __init__(self, stdout: bytes, stderr: bytes = b"", returncode: int = 0):
14 self._stdout = stdout
15 self._stderr = stderr
16 self.returncode = returncode
17 self.pid = 12345
18
19 def communicate(self, timeout=None):
20 return self._stdout, self._stderr
21
22 def wait(self, timeout=None):
23 pass
24
25
26class _FakeTaskkillResult:

Callers 1

fake_runFunction · 0.85

Calls

no outgoing calls

Tested by 1

fake_runFunction · 0.68