Skip to main content

Finding

One or two sentences stating a step’s result.

Usage

Source

Finding(**data)

template is jinja2 text; values fills its fields. The values are booleans, integers, finite floats or strings, so a finding is JSON-safe. The text is rendered, and checked, when the finding is made. text shows the values as given; dazflow.render formats the numbers in the house style, and a style can replace the template of a finding that has a key.

Examples

>>> Finding(template="{{ n }} of {{ total }} checks pass.", values={"n": 3, "total": 4}).text

‘3 of 4 checks pass.’

Attributes

Name Description
text The template filled with the values.

text

The template filled with the values.

text: str