Each stage takes the stage dictionary as its first argument. If the tincture is a generator (if it defines a 'yield' like the second example), then the response will be returned to it (if you want it). That's all they can be used for - there is no context saved between stages. The syntax for defining the functions/extra args is the same as existing external functions.
Tinctures are called when the stage is run, so after any fixtures are evaluated.
114
Add utility for running things before/after stages, able to be specified at test or stage level. Example functions
Used like
Each stage takes the stage dictionary as its first argument. If the tincture is a generator (if it defines a 'yield' like the second example), then the response will be returned to it (if you want it). That's all they can be used for - there is no context saved between stages. The syntax for defining the functions/extra args is the same as existing external functions.
Tinctures are called when the stage is run, so after any fixtures are evaluated.
As for the name - a tincture is
I wanted a name that sounded sort of like 'fixture' and 'tavern'.