geomancy.checks.Result#
- class geomancy.checks.Result(status: str = 'pending', _allowed_re: ~typing.Pattern[str] = re.compile('^(passed|failed|pending)( \\([^\\n]+\\))?$'), msg: str = '', condition: ~typing.Callable = <built-in function all>, children: ~typing.List[~geomancy.checks.base.Result | ~typing.Awaitable[~geomancy.checks.base.Result]] = <factory>)#
A Check’s result with awareness of concurrent.futures and rich functionality
- __init__(status: str = 'pending', _allowed_re: ~typing.Pattern[str] = re.compile('^(passed|failed|pending)( \\([^\\n]+\\))?$'), msg: str = '', condition: ~typing.Callable = <built-in function all>, children: ~typing.List[~geomancy.checks.base.Result | ~typing.Awaitable[~geomancy.checks.base.Result]] = <factory>) None#
Methods
__init__([status, _allowed_re, msg, ...])rich_table([table, warning, level])Generate a table with rich to display this result and child results
Attributes
statusResult's status--e.g.
msgResult message used when displaying the result.
conditionThe pass condition for children checks and their passed property values
childrenThe flat list of Results or Futures from children checks
doneWhether the check that generated this result and children checks are done
finishedReturn a flat list of currently finished results
passedWhether the check that generated this result passed.