(cluster_name: str | None)
| 54 | |
| 55 | @pytest.fixture |
| 56 | def 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") |
no outgoing calls
no test coverage detected