ForceFailure
dendron.decorators.force_failure.ForceFailure
Bases: DecoratorNode
A Force Failure decorator will tick its child, and regardless of the result will return failure.
May be useful for debugging.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
`str`
|
The given name of this node. |
required |
child |
`dendron.tree_node.TreeNode`
|
An optional child node. If |
None
|
Source code in src/dendron/decorators/force_failure.py
tick()
Call the tick()
method of the child and then return a status of
FAILURE
.