ConditionResult#

class ConditionResult[source]#

Contain result of a condition function.

Parameters
categoryConditionCategory

The category to which the condition result belongs.

detailsstr

What actually happened in the condition.

__init__(category: ConditionCategory, details: str = '')[source]#
__new__(*args, **kwargs)#

Attributes

ConditionResult.priority

Return priority of the current condition.

ConditionResult.category

ConditionResult.details

ConditionResult.name

Methods

ConditionResult.get_icon()

Return icon of the result to display.

ConditionResult.is_pass([fail_if_warning])

Return true if the condition has passed.

ConditionResult.set_name(name)

Set name to be displayed in table.