(self)
| 279 | assert result is True |
| 280 | |
| 281 | def test_numeric_comparison(self): |
| 282 | from specify_cli.workflows.expressions import evaluate_expression |
| 283 | from specify_cli.workflows.base import StepContext |
| 284 | |
| 285 | ctx = StepContext( |
| 286 | steps={"plan": {"output": {"task_count": 7}}} |
| 287 | ) |
| 288 | assert evaluate_expression("{{ steps.plan.output.task_count > 5 }}", ctx) is True |
| 289 | assert evaluate_expression("{{ steps.plan.output.task_count < 5 }}", ctx) is False |
| 290 | |
| 291 | def test_boolean_and(self): |
| 292 | from specify_cli.workflows.expressions import evaluate_expression |
nothing calls this directly
no test coverage detected