()
| 68 | |
| 69 | |
| 70 | def 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 | |
| 81 | def test_exec_python_serializes_callable_payload() -> None: |
nothing calls this directly
no test coverage detected