Skip to content

AcceptanceCriterion

An AcceptanceCriterion encodes a Given / When / Then testable condition attached to a UserStory.

The given and when fields are optional; only then is required. Validation evidence is stored in the validations set as immutable ValidationEntry records — see Validations.

AcceptanceCriterion

Bases: MergeableModel

A testable condition attached to a UserStory.

Parameters:

Name Type Description Default
id

Integer identifier, unique within the enclosing UserStory.

required
given

Optional description of the initial context or state.

required
when

Optional description of the trigger condition.

required
then

Mandatory description of the expected outcome.

required
active

Whether this criterion is an active requirement. Set to False when a criterion is discarded without removing it.

required
validations

Validation records attached to this criterion. An AC is considered validated when this set is non-empty and every record has passed=True.

required

is_validated property

Return True when all validations are present and passed.