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

Method test_boolean_or

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

Source from the content-addressed store, hash-verified

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
300 from specify_cli.workflows.base import StepContext
301
302 ctx = StepContext(inputs={"a": False, "b": True})
303 assert evaluate_expression("{{ inputs.a or inputs.b }}", ctx) is True
304
305 def test_list_literal_preserves_quoted_commas(self):
306 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