(self)
| 716 | """Test the command step type.""" |
| 717 | |
| 718 | def test_execute_basic(self): |
| 719 | from unittest.mock import patch |
| 720 | from specify_cli.workflows.steps.command import CommandStep |
| 721 | from specify_cli.workflows.base import StepContext, StepStatus |
| 722 | |
| 723 | step = CommandStep() |
| 724 | ctx = StepContext( |
| 725 | inputs={"name": "login"}, |
| 726 | default_integration="claude", |
| 727 | ) |
| 728 | config = { |
| 729 | "id": "test", |
| 730 | "command": "speckit.specify", |
| 731 | "input": {"args": "{{ inputs.name }}"}, |
| 732 | } |
| 733 | with patch("specify_cli.workflows.steps.command.shutil.which", return_value=None): |
| 734 | result = step.execute(config, ctx) |
| 735 | assert result.status == StepStatus.FAILED |
| 736 | assert result.output["command"] == "speckit.specify" |
| 737 | assert result.output["integration"] == "claude" |
| 738 | assert result.output["input"]["args"] == "login" |
| 739 | |
| 740 | def test_try_dispatch_resolves_rovodev_via_acli(self, tmp_path): |
| 741 | """When acli is installed, rovodev dispatch succeeds via acli.""" |
nothing calls this directly
no test coverage detected