(self)
| 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.""" |
nothing calls this directly
no test coverage detected