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

Method test_execute_with_model

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

Source from the content-addressed store, hash-verified

1007 assert result.output["integration"] == "gemini"
1008
1009 def test_execute_with_model(self):
1010 from unittest.mock import patch
1011 from specify_cli.workflows.steps.prompt import PromptStep
1012 from specify_cli.workflows.base import StepContext
1013
1014 step = PromptStep()
1015 ctx = StepContext(default_integration="claude", default_model="sonnet-4")
1016 config = {
1017 "id": "review",
1018 "type": "prompt",
1019 "prompt": "hello",
1020 "model": "opus-4",
1021 }
1022 with patch("specify_cli.workflows.steps.prompt.shutil.which", return_value=None):
1023 result = step.execute(config, ctx)
1024 assert result.output["model"] == "opus-4"
1025
1026 def test_try_dispatch_resolves_rovodev_via_acli(self, tmp_path):
1027 """When acli is installed, rovodev prompt dispatch succeeds via acli."""

Callers

nothing calls this directly

Calls 3

executeMethod · 0.95
PromptStepClass · 0.90
StepContextClass · 0.90

Tested by

no test coverage detected