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