(self, tmp_path)
| 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 |
nothing calls this directly
no test coverage detected