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

Method test_invalid_integration_fails

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

Source from the content-addressed store, hash-verified

1335 assert (tmp_path / "demo" / ".specify").is_dir()
1336
1337 def test_invalid_integration_fails(self, tmp_path):
1338 from specify_cli.workflows.steps.init import InitStep
1339 from specify_cli.workflows.base import StepContext, StepStatus
1340
1341 step = InitStep()
1342 ctx = StepContext(project_root=str(tmp_path))
1343 result = step.execute(
1344 {
1345 "id": "bootstrap",
1346 "here": True,
1347 "integration": "no-such-agent",
1348 "script": "sh",
1349 },
1350 ctx,
1351 )
1352 assert result.status == StepStatus.FAILED
1353 assert result.output["exit_code"] != 0
1354 assert result.error is not None
1355
1356 def test_non_empty_current_dir_without_force_fails_fast(self, tmp_path):
1357 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