MCPcopy Create free account
hub / github.com/Drakkar-Software/OctoBot / _SimpleProcess

Class _SimpleProcess

packages/commons/tests/test_monitored_process.py:26–35  ·  view source on GitHub ↗

Minimal concrete subclass used as system under test.

Source from the content-addressed store, hash-verified

24
25
26class _SimpleProcess(monitored_process.MonitoredProcess):
27 """Minimal concrete subclass used as system under test."""
28
29 READINESS_STRING = "ready"
30 ERROR_PATTERNS = ["FATAL"]
31 TERMINATE_TIMEOUT_SECONDS = 0.1
32 READINESS_TIMEOUT_SECONDS = 1.0
33
34 def _get_subprocess_args(self) -> list:
35 return ["mybin", "--flag"]
36
37
38def _make_stream(*lines: str) -> asyncio.StreamReader:

Calls

no outgoing calls