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

Method test_execute_with_step_integration

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

Source from the content-addressed store, hash-verified

990 assert result.output["dispatched"] is False
991
992 def test_execute_with_step_integration(self):
993 from unittest.mock import patch
994 from specify_cli.workflows.steps.prompt import PromptStep
995 from specify_cli.workflows.base import StepContext
996
997 step = PromptStep()
998 ctx = StepContext(default_integration="claude")
999 config = {
1000 "id": "review",
1001 "type": "prompt",
1002 "prompt": "Summarize the codebase",
1003 "integration": "gemini",
1004 }
1005 with patch("specify_cli.workflows.steps.prompt.shutil.which", return_value=None):
1006 result = step.execute(config, ctx)
1007 assert result.output["integration"] == "gemini"
1008
1009 def test_execute_with_model(self):
1010 from unittest.mock import patch

Callers

nothing calls this directly

Calls 3

executeMethod · 0.95
PromptStepClass · 0.90
StepContextClass · 0.90

Tested by

no test coverage detected