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

Function test_exec_sends_stdin_payload

python/openshell/sandbox_test.py:70–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68
69
70def test_exec_sends_stdin_payload() -> None:
71 stub = _FakeStub()
72 client = _client_with_fake_stub(stub)
73
74 result = client.exec("sandbox-1", ["python", "-c", "print('ok')"], stdin=b"payload")
75
76 assert result.exit_code == 0
77 assert stub.request is not None
78 assert stub.request.stdin == b"payload"
79
80
81def test_exec_python_serializes_callable_payload() -> None:

Callers

nothing calls this directly

Calls 3

_FakeStubClass · 0.85
_client_with_fake_stubFunction · 0.85
execMethod · 0.45

Tested by

no test coverage detected