MCPcopy Create free account
hub / github.com/anthropics/defending-code-reference-harness / _exec_sequence

Function _exec_sequence

tests/test_patch_grade.py:152–159  ·  view source on GitHub ↗

Mock for docker_ops.exec_sh that returns a fixed sequence of (rc,out,err).

(results)

Source from the content-addressed store, hash-verified

150
151
152def _exec_sequence(results):
153 """Mock for docker_ops.exec_sh that returns a fixed sequence of (rc,out,err)."""
154 it = iter(results)
155
156 def _f(container, cmd, timeout=None):
157 return next(it)
158
159 return _f
160
161
162@pytest.fixture

Calls

no outgoing calls

Tested by

no test coverage detected