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

Function sandbox

e2e/python/conftest.py:56–67  ·  view source on GitHub ↗
(cluster_name: str | None)

Source from the content-addressed store, hash-verified

54
55@pytest.fixture
56def sandbox(cluster_name: str | None) -> Callable[..., Sandbox]:
57 def _create(*, spec: object | None = None, delete_on_exit: bool = True) -> Sandbox:
58 return Sandbox(
59 cluster=cluster_name,
60 spec=spec,
61 delete_on_exit=delete_on_exit,
62 # The sandbox image is large (Python, Node.js, coding agents) so the
63 # first pod in the cluster may need extra time for the image pull.
64 ready_timeout_seconds=300.0,
65 )
66
67 return _create
68
69
70@pytest.fixture(scope="session")

Calls

no outgoing calls

Tested by

no test coverage detected