MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / setUp

Method setUp

tests/test_command_system.py:287–309  ·  view source on GitHub ↗

Set up test fixtures.

(self)

Source from the content-addressed store, hash-verified

285 """Tests for the command engine."""
286
287 def setUp(self):
288 """Set up test fixtures."""
289 self.tmpdir = tempfile.TemporaryDirectory()
290 self.workspace_root = Path(self.tmpdir.name).resolve()
291 self.registry = CommandRegistry()
292 register_builtin_commands(self.registry)
293
294 self.conversation = MockConversation()
295 self.cost_tracker = CostTracker()
296 self.history = HistoryLog()
297
298 self.context = create_command_context(
299 workspace_root=self.workspace_root,
300 conversation=self.conversation,
301 cost_tracker=self.cost_tracker,
302 history=self.history,
303 )
304
305 self.engine = CommandEngine(
306 registry=self.registry,
307 workspace_root=self.workspace_root,
308 context=self.context,
309 )
310
311 def tearDown(self):
312 """Clean up test fixtures."""

Callers

nothing calls this directly

Calls 7

CommandRegistryClass · 0.90
CostTrackerClass · 0.90
HistoryLogClass · 0.90
create_command_contextFunction · 0.90
CommandEngineClass · 0.90
MockConversationClass · 0.70

Tested by

no test coverage detected