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