MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / _FakeStub

Class _FakeStub

python/openshell/sandbox_test.py:31–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30
31class _FakeStub:
32 def __init__(self) -> None:
33 self.request: openshell_pb2.ExecSandboxRequest | None = None
34
35 def ExecSandbox(
36 self,
37 request: openshell_pb2.ExecSandboxRequest,
38 timeout: float | None = None,
39 ):
40 self.request = request
41 _ = timeout
42 yield openshell_pb2.ExecSandboxEvent(
43 exit=openshell_pb2.ExecSandboxExit(exit_code=0)
44 )
45
46
47class _FakeInferenceStub:

Calls

no outgoing calls