Set up test fixtures.
(self)
| 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.""" |
nothing calls this directly
no test coverage detected