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

Method test_step_override_integration

tests/test_workflows.py:778–793  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

776 assert any("missing 'command'" in e for e in errors)
777
778 def test_step_override_integration(self):
779 from unittest.mock import patch
780 from specify_cli.workflows.steps.command import CommandStep
781 from specify_cli.workflows.base import StepContext
782
783 step = CommandStep()
784 ctx = StepContext(default_integration="claude")
785 config = {
786 "id": "test",
787 "command": "speckit.plan",
788 "integration": "gemini",
789 "input": {},
790 }
791 with patch("specify_cli.workflows.steps.command.shutil.which", return_value=None):
792 result = step.execute(config, ctx)
793 assert result.output["integration"] == "gemini"
794
795 def test_step_override_model(self):
796 from unittest.mock import patch

Callers

nothing calls this directly

Calls 3

executeMethod · 0.95
CommandStepClass · 0.90
StepContextClass · 0.90

Tested by

no test coverage detected