MCPcopy Index your code
hub / github.com/github/spec-kit / test_condition_evaluation

Method test_condition_evaluation

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

Source from the content-addressed store, hash-verified

519 evaluate_expression("{{ inputs.tags | map }}", ctx)
520
521 def test_condition_evaluation(self):
522 from specify_cli.workflows.expressions import evaluate_condition
523 from specify_cli.workflows.base import StepContext
524
525 ctx = StepContext(inputs={"ready": True})
526 assert evaluate_condition("{{ inputs.ready }}", ctx) is True
527 assert evaluate_condition("{{ inputs.missing }}", ctx) is False
528
529 def test_non_string_passthrough(self):
530 from specify_cli.workflows.expressions import evaluate_expression

Callers

nothing calls this directly

Calls 2

StepContextClass · 0.90
evaluate_conditionFunction · 0.90

Tested by

no test coverage detected