MCPcopy
hub / github.com/github/spec-kit / test_builds_here_argv_and_bootstraps

Method test_builds_here_argv_and_bootstraps

tests/test_workflows.py:1284–1302  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

executeMethod · 0.95
InitStepClass · 0.90
StepContextClass · 0.90

Tested by

no test coverage detected