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

Method test_step_override_model

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

Source from the content-addressed store, hash-verified

793 assert result.output["integration"] == "gemini"
794
795 def test_step_override_model(self):
796 from unittest.mock import patch
797 from specify_cli.workflows.steps.command import CommandStep
798 from specify_cli.workflows.base import StepContext
799
800 step = CommandStep()
801 ctx = StepContext(default_model="sonnet-4")
802 config = {
803 "id": "test",
804 "command": "speckit.implement",
805 "model": "opus-4",
806 "input": {},
807 }
808 with patch("specify_cli.workflows.steps.command.shutil.which", return_value=None):
809 result = step.execute(config, ctx)
810 assert result.output["model"] == "opus-4"
811
812 def test_options_merge(self):
813 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