MCPcopy Create free account
hub / github.com/dbcli/mycli / communicate

Method communicate

test/pytests/test_special_iocommands.py:86–91  ·  view source on GitHub ↗
(self, input: str | None = None, timeout: int | None = None)

Source from the content-addressed store, hash-verified

84 self.killed = False
85
86 def communicate(self, input: str | None = None, timeout: int | None = None) -> tuple[bytes | str, bytes | str]: # noqa: A002
87 self.communicate_calls += 1
88 self.communicate_timeouts.append(timeout)
89 if self.raise_timeout and self.communicate_calls == 1:
90 raise subprocess.TimeoutExpired(cmd='fake', timeout=timeout or 0)
91 return (self.stdout, self.stderr)
92
93 def kill(self) -> None:
94 self.killed = True

Callers 2

execute_system_commandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected