Option C Tools
Loading...
Searching...
No Matches
tests_mcp.test_mcp_sandbox Namespace Reference

Classes

class  TestSanitiseEnv
class  TestSandboxResult
class  TestSandboxExecutorRun
class  TestSandboxExecutorTimeout
class  TestSandboxExecutorOutputLimit

Detailed Description

Purpose
-------
Regression tests for :mod:`oct.mcp.sandbox` — ``SandboxExecutor`` and
environment sanitisation.

Responsibilities
----------------
- Verify environment sanitisation strips sensitive variables.
- Verify timeout enforcement and output-size limits.
- Verify T-04 (command chaining) and shell=False enforcement.
- Verify exit-code forwarding from subprocess.

Diagnostics
-----------
Domain: MCP-TESTS
Levels:
    L2 — test lifecycle
    L3 — assertion details
    L4 — deep tracing

Contracts
---------
- Tests use mock subprocess; no real commands are executed.