(self)
| 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 |
| 273 | from specify_cli.workflows.base import StepContext |
| 274 | |
| 275 | ctx = StepContext( |
| 276 | steps={"run-tests": {"output": {"exit_code": 1}}} |
| 277 | ) |
| 278 | result = evaluate_expression("{{ steps.run-tests.output.exit_code != 0 }}", ctx) |
| 279 | assert result is True |
| 280 | |
| 281 | def test_numeric_comparison(self): |
| 282 | from specify_cli.workflows.expressions import evaluate_expression |
nothing calls this directly
no test coverage detected