(self, tmp_path)
| 1282 | """Test the init step type.""" |
| 1283 | |
| 1284 | def test_builds_here_argv_and_bootstraps(self, tmp_path): |
| 1285 | from specify_cli.workflows.steps.init import InitStep |
| 1286 | from specify_cli.workflows.base import StepContext, StepStatus |
| 1287 | |
| 1288 | step = InitStep() |
| 1289 | ctx = StepContext( |
| 1290 | project_root=str(tmp_path), default_integration="copilot" |
| 1291 | ) |
| 1292 | config = {"id": "bootstrap", "here": True, "script": "sh"} |
| 1293 | result = step.execute(config, ctx) |
| 1294 | |
| 1295 | assert result.status == StepStatus.COMPLETED |
| 1296 | assert result.output["exit_code"] == 0 |
| 1297 | argv = result.output["argv"] |
| 1298 | assert argv[0] == "init" |
| 1299 | assert "--here" in argv |
| 1300 | assert "--integration" in argv and "copilot" in argv |
| 1301 | assert "--ignore-agent-tools" in argv |
| 1302 | assert (tmp_path / ".specify").is_dir() |
| 1303 | |
| 1304 | def test_default_integration_falls_back_to_workflow_default(self, tmp_path): |
| 1305 | from specify_cli.workflows.steps.init import InitStep |
nothing calls this directly
no test coverage detected