(self)
| 261 | assert evaluate_expression("{{ inputs.text | contains('}}') }}", ctx) is True |
| 262 | |
| 263 | def test_comparison_equals(self): |
| 264 | from specify_cli.workflows.expressions import evaluate_expression |
| 265 | from specify_cli.workflows.base import StepContext |
| 266 | |
| 267 | ctx = StepContext(inputs={"scope": "full"}) |
| 268 | assert evaluate_expression("{{ inputs.scope == 'full' }}", ctx) is True |
| 269 | assert evaluate_expression("{{ inputs.scope == 'partial' }}", ctx) is False |
| 270 | |
| 271 | def test_comparison_not_equals(self): |
| 272 | from specify_cli.workflows.expressions import evaluate_expression |
nothing calls this directly
no test coverage detected