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

Method test_string_interpolation

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

Source from the content-addressed store, hash-verified

219 assert evaluate_expression("{{ steps.specify.output.file }}", ctx) == "spec.md"
220
221 def test_string_interpolation(self):
222 from specify_cli.workflows.expressions import evaluate_expression
223 from specify_cli.workflows.base import StepContext
224
225 ctx = StepContext(inputs={"name": "login"})
226 result = evaluate_expression("Feature: {{ inputs.name }} done", ctx)
227 assert result == "Feature: login done"
228
229 def test_multi_expression_no_surrounding_text(self):
230 """Two expressions with no surrounding literal text must interpolate each,

Callers

nothing calls this directly

Calls 2

StepContextClass · 0.90
evaluate_expressionFunction · 0.90

Tested by

no test coverage detected