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

Method test_numeric_comparison

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

StepContextClass · 0.90
evaluate_expressionFunction · 0.90

Tested by

no test coverage detected