MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / CapturingEnvironment

Class CapturingEnvironment

tests/arenas/test_cyborg.py:207–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 arena.logger = type("Logger", (), {"info": lambda self, msg: None, "error": lambda self, msg: None})()
206
207 class CapturingEnvironment(MockEnvironment):
208 def __init__(self):
209 super().__init__()
210 self.timeout = None
211
212 def execute(self, cmd, cwd=None, timeout=None):
213 self._executed_commands.append(cmd)
214 self.timeout = timeout
215 return {"output": "", "returncode": 0}
216
217 arena.environment = CapturingEnvironment()
218

Calls

no outgoing calls