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

Method test_boolean_and

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

Source from the content-addressed store, hash-verified

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
293 from specify_cli.workflows.base import StepContext
294
295 ctx = StepContext(inputs={"a": True, "b": True})
296 assert evaluate_expression("{{ inputs.a and inputs.b }}", ctx) is True
297
298 def test_boolean_or(self):
299 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