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

Method setUp

tests/test_command_system.py:373–395  ·  view source on GitHub ↗

Set up test fixtures.

(self)

Source from the content-addressed store, hash-verified

371 """Tests for the /init command implementation."""
372
373 def setUp(self):
374 """Set up test fixtures."""
375 self.tmpdir = tempfile.TemporaryDirectory()
376 self.workspace_root = Path(self.tmpdir.name).resolve()
377 self.registry = CommandRegistry()
378 register_builtin_commands(self.registry)
379
380 self.conversation = MockConversation()
381 self.cost_tracker = CostTracker()
382 self.history = HistoryLog()
383
384 self.context = create_command_context(
385 workspace_root=self.workspace_root,
386 conversation=self.conversation,
387 cost_tracker=self.cost_tracker,
388 history=self.history,
389 )
390
391 self.engine = CommandEngine(
392 registry=self.registry,
393 workspace_root=self.workspace_root,
394 context=self.context,
395 )
396
397 def tearDown(self):
398 """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